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 +4 -4
- data/inferred_crumpets.gemspec +1 -1
- data/lib/inferred_crumpets/builder.rb +5 -5
- data/lib/inferred_crumpets/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3149bba0f22205075ec83301699107aa96f02fce
|
4
|
+
data.tar.gz: 59e4115188b6ec7649395b1ce75b96b9c27a9642
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2198738d86c4e939da81666cc3174deed5eb2b1d034ba0048efa533cbdff875c16ef7a7e9853118c278baeb0caabc7f04b3194b0a76c8678a3495eec76c0f92c
|
7
|
+
data.tar.gz: 860372bfe45ceae1b11718f406e4d61000f25f75552a1d07cf77e119403ff87de207003de0bacc825ab0f0712d178acf163b08b7b78216dd3712c9ee1696b63a
|
data/inferred_crumpets.gemspec
CHANGED
@@ -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.
|
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
|
-
|
46
|
+
view_context.crumbs.add_crumb subject_name.pluralize.titleize
|
47
47
|
else
|
48
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
64
|
+
view_context.crumbs.add_crumb(subject_name, url_for_subject)
|
65
65
|
end
|
66
66
|
|
67
67
|
def url_for_subject
|
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.
|
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-
|
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.
|
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.
|
40
|
+
version: 0.3.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|