vinsol-spree-contrib / spree_admin_roles_and_access

Admin Roles And Access for Spree
BSD 3-Clause "New" or "Revised" License
43 stars 101 forks source link

Not able to integrate in spree 3.0.4 #15

Open lmahendra opened 9 years ago

lmahendra commented 9 years ago

Hi , when I tried to add gem in my Gemfile , it gives me error

 spree (= 3.0.4) ruby depends on
  spree_sample (= 3.0.4) ruby depends on
    spree_core (= 3.0.4) ruby

spree_admin_roles_and_access (>= 0) ruby depends on
  spree_core (~> 2.0) ruby

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.

and bundler exits, please help me resolve the issue.

lmahendra commented 9 years ago

Hi,

I somewhat downgraded the spree to check and can add this gem to Gemfile, but after running

 bundle exec rails g spree_admin_roles_and_access:install

I got following error,

/home/ec2-user/.rvm/gems/ruby-2.1.2/gems/state_machine-1.2.0/lib/state_machine/machine.rb:2260:in `block in add_states': "completed" state defined as String, :checkout defined as Symbol; all states must be consistent (ArgumentError)

Please help resolve the issue.

extract of my Gemfile contains

gem 'spree', github: 'spree/spree', branch: '2-4-stable'
gem 'spree_gateway', github: 'spree/spree_gateway', branch: '2-4-stable'
gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '2-4-stable'
#gem 'spree_admin_roles_and_access'
gem 'spree_admin_roles_and_access', '1.3.0'
#gem 'spree_social', github: 'spree-contrib/spree_social'
gem 'spree_wallet'

current version of rails is 4.1.11

Any help would be greatly appreciated

ShubhamGupta commented 8 years ago

@lmahendra This issue doesn't look like to be coming from this gem.