inferred_crumpets 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 13af999973296c174d049d114cda22ede1083232
4
- data.tar.gz: 1bd786c49e8d565ed6ae677f5ed9f67075182313
3
+ metadata.gz: 3149bba0f22205075ec83301699107aa96f02fce
4
+ data.tar.gz: 59e4115188b6ec7649395b1ce75b96b9c27a9642
5
5
  SHA512:
6
- metadata.gz: a56502ba97d10d61c9e8acd720b93e3d2da2e030b0b310f3ac6b821e45889dbbc7c96cc045700b8516cb0677560e0f6ab219cdbe9329e3f570e21fc1c95904a9
7
- data.tar.gz: 1fc88f0a6d160c3935e2523cc4c5950e140b323f50887b60d3cdce81997d14d9aeafd2be006a9dff1a6bc11aa26b53ed9a3d26a0d11dcf92b545ae64b1da2421
6
+ metadata.gz: 2198738d86c4e939da81666cc3174deed5eb2b1d034ba0048efa533cbdff875c16ef7a7e9853118c278baeb0caabc7f04b3194b0a76c8678a3495eec76c0f92c
7
+ data.tar.gz: 860372bfe45ceae1b11718f406e4d61000f25f75552a1d07cf77e119403ff87de207003de0bacc825ab0f0712d178acf163b08b7b78216dd3712c9ee1696b63a
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
  spec.require_paths = ["lib"]
23
23
 
24
24
  spec.add_dependency "rails", ">= 3"
25
- spec.add_dependency "crumpet", ">= 0.1.2"
25
+ spec.add_dependency "crumpet", ">= 0.3.0"
26
26
 
27
27
  spec.add_development_dependency "bundler", "~> 1.14"
28
28
  spec.add_development_dependency "rake", "~> 10.0"
@@ -43,25 +43,25 @@ module InferredCrumpets
43
43
 
44
44
  def build_crumb_for_collection!
45
45
  if action == 'index'
46
- Crumpet.crumbs.add_crumb subject_name.pluralize.titleize
46
+ view_context.crumbs.add_crumb subject_name.pluralize.titleize
47
47
  else
48
- Crumpet.crumbs.add_crumb subject.class.table_name.titleize, url_for_collection
48
+ view_context.crumbs.add_crumb subject.class.table_name.titleize, url_for_collection
49
49
  end
50
50
  end
51
51
 
52
52
  def build_crumb_for_action!
53
53
  if %w(new create).include?(action)
54
- Crumpet.crumbs.add_crumb 'New', wrapper_options: { class: 'active' }
54
+ view_context.crumbs.add_crumb 'New', wrapper_options: { class: 'active' }
55
55
  elsif %w(edit update).include?(action)
56
56
  build_crumb_for_subject!
57
- Crumpet.crumbs.add_crumb 'Edit', wrapper_options: { class: 'active' }
57
+ view_context.crumbs.add_crumb 'Edit', wrapper_options: { class: 'active' }
58
58
  elsif action != 'index'
59
59
  build_crumb_for_subject!
60
60
  end
61
61
  end
62
62
 
63
63
  def build_crumb_for_subject!
64
- Crumpet.crumbs.add_crumb(subject_name, url_for_subject)
64
+ view_context.crumbs.add_crumb(subject_name, url_for_subject)
65
65
  end
66
66
 
67
67
  def url_for_subject
@@ -1,3 +1,3 @@
1
1
  module InferredCrumpets
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inferred_crumpets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grant Colegate
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-19 00:00:00.000000000 Z
11
+ date: 2017-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 0.1.2
33
+ version: 0.3.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 0.1.2
40
+ version: 0.3.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement