adva-categories 0.0.9 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
data/config/redirects.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  Adva::Registry.set :redirect, {
2
2
  'admin/categories#create' => lambda { |c| c.edit_url },
3
- 'admin/categories#update' => lambda { |c| c.edit_url }
3
+ 'admin/categories#update' => lambda { |c| c.edit_url },
4
+ 'admin/categories#destroy' => lambda { |c| c.index_url }
4
5
  }
@@ -1,3 +1,3 @@
1
1
  module AdvaCategories
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.11"
3
3
  end
@@ -1,12 +1,13 @@
1
- When /^I drag the category "([^"]*)" below the category "([^"]*)"$/ do |category, target|
1
+ When /^I drag the category "([^"]*)" behind the category "([^"]*)"$/ do |category, target|
2
+ url = current_url
2
3
  category = Category.find_by_name(category)
3
4
  target = Category.find_by_name(target)
4
5
  section = Section.first
5
- put(admin_site_section_path(section.site, section), {
6
+ page.driver.put(admin_site_section_path(section.site, section), {
6
7
  :section => { :categories_attributes => [{ :id => category.id, :left_id => target.id }] },
7
- :return_to => @request.url
8
+ :return_to => url
8
9
  })
9
- follow_redirect!
10
+ visit url
10
11
  end
11
12
 
12
13
  Then /^the ([\w]+) (name|title)d "([^"]+)" should be categorized as "([^"]+)"$/ do |model, attribute, value, category|
metadata CHANGED
@@ -1,104 +1,82 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: adva-categories
3
- version: !ruby/object:Gem::Version
4
- hash: 13
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.11
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 9
10
- version: 0.0.9
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Ingo Weiss
14
9
  - Sven Fuchs
15
10
  autorequire:
16
11
  bindir: bin
17
12
  cert_chain: []
18
-
19
- date: 2011-02-28 00:00:00 +01:00
13
+ date: 2011-07-28 00:00:00.000000000 +02:00
20
14
  default_executable:
21
- dependencies:
22
- - !ruby/object:Gem::Dependency
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
23
17
  name: adva-core
24
- prerelease: false
25
- requirement: &id001 !ruby/object:Gem::Requirement
18
+ requirement: &2167529800 !ruby/object:Gem::Requirement
26
19
  none: false
27
- requirements:
28
- - - ">="
29
- - !ruby/object:Gem::Version
30
- hash: 3
31
- segments:
32
- - 0
33
- version: "0"
20
+ requirements:
21
+ - - ! '>='
22
+ - !ruby/object:Gem::Version
23
+ version: '0'
34
24
  type: :runtime
35
- version_requirements: *id001
25
+ prerelease: false
26
+ version_requirements: *2167529800
36
27
  description: Categories engine for adva-cms2
37
28
  email: nobody@adva-cms.org
38
29
  executables: []
39
-
40
30
  extensions: []
41
-
42
31
  extra_rdoc_files: []
43
-
44
- files:
32
+ files:
45
33
  - app/controllers/admin/categories_controller.rb
46
34
  - app/controllers/base_controller_slice.rb
47
35
  - app/helpers/url_helper_slice.rb
48
- - app/views/admin/categories/index.html.rb
49
- - app/views/admin/categories/edit.html.rb
50
- - app/views/admin/categories/new.html.rb
51
- - app/views/admin/categories/_form.html.rb
52
- - app/views/admin/categories/_menu.html.rb
53
- - app/models/content_slice.rb
54
- - app/models/category.rb
55
36
  - app/models/categorization.rb
37
+ - app/models/category.rb
38
+ - app/models/content_slice.rb
56
39
  - app/models/section_slice.rb
40
+ - app/views/admin/categories/_form.html.rb
41
+ - app/views/admin/categories/_menu.html.rb
42
+ - app/views/admin/categories/edit.html.rb
43
+ - app/views/admin/categories/index.html.rb
44
+ - app/views/admin/categories/new.html.rb
45
+ - config/locales/en.yml
57
46
  - config/redirects.rb
58
47
  - config/routes.rb
59
- - config/locales/en.yml
60
- - lib/adva-categories.rb
61
- - lib/adva_categories/version.rb
62
- - lib/adva/categories.rb
63
48
  - lib/adva/active_record/categorizable.rb
49
+ - lib/adva/categories.rb
64
50
  - lib/adva/routing_filters/categories.rb
65
51
  - lib/adva/views/categories_tab.rb
52
+ - lib/adva-categories.rb
53
+ - lib/adva_categories/version.rb
66
54
  - lib/testing/factories.rb
67
55
  - lib/testing/paths.rb
68
56
  - lib/testing/step_definitions.rb
69
57
  has_rdoc: true
70
58
  homepage: http://github.com/svenfuchs/adva-cms2
71
59
  licenses: []
72
-
73
60
  post_install_message:
74
61
  rdoc_options: []
75
-
76
- require_paths:
62
+ require_paths:
77
63
  - lib
78
- required_ruby_version: !ruby/object:Gem::Requirement
64
+ required_ruby_version: !ruby/object:Gem::Requirement
79
65
  none: false
80
- requirements:
81
- - - ">="
82
- - !ruby/object:Gem::Version
83
- hash: 3
84
- segments:
85
- - 0
86
- version: "0"
87
- required_rubygems_version: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ required_rubygems_version: !ruby/object:Gem::Requirement
88
71
  none: false
89
- requirements:
90
- - - ">="
91
- - !ruby/object:Gem::Version
92
- hash: 3
93
- segments:
94
- - 0
95
- version: "0"
72
+ requirements:
73
+ - - ! '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
96
76
  requirements: []
97
-
98
- rubyforge_project: "[none]"
99
- rubygems_version: 1.4.2
77
+ rubyforge_project: ! '[none]'
78
+ rubygems_version: 1.6.2
100
79
  signing_key:
101
80
  specification_version: 3
102
81
  summary: Categories engine for adva-cms2
103
82
  test_files: []
104
-