sprockets-helpers 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -49,10 +49,20 @@ module Sprockets
49
49
  def configure
50
50
  yield self
51
51
  end
52
+
53
+ # Hack to ensure methods from Sprockets::Helpers override the
54
+ # methods of Sprockets::Context when included.
55
+ def append_features(context) # :nodoc:
56
+ context.class_eval do
57
+ Helpers.public_instance_methods.each do |method|
58
+ remove_method(method) if method_defined?(method)
59
+ end
60
+ end
61
+
62
+ super(context)
63
+ end
52
64
  end
53
- end
54
65
 
55
- class Context
56
66
  # Returns the path to an asset either in the Sprockets environment
57
67
  # or the public directory. External URIs are untouched.
58
68
  #
@@ -274,4 +284,8 @@ module Sprockets
274
284
  Helpers.environment || environment
275
285
  end
276
286
  end
287
+
288
+ class Context
289
+ include Helpers
290
+ end
277
291
  end
@@ -1,5 +1,5 @@
1
1
  module Sprockets
2
2
  module Helpers
3
- VERSION = '0.7.0'
3
+ VERSION = '0.7.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,103 +1,106 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: sprockets-helpers
3
- version: !ruby/object:Gem::Version
4
- version: 0.7.0
3
+ version: !ruby/object:Gem::Version
4
+ hash: 1
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 7
9
+ - 1
10
+ version: 0.7.1
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Pete Browne
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2012-09-20 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: sprockets
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ~>
20
- - !ruby/object:Gem::Version
21
- version: '2.0'
17
+
18
+ date: 2012-09-25 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
22
21
  type: :runtime
23
22
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
23
+ requirement: &id001 !ruby/object:Gem::Requirement
25
24
  none: false
26
- requirements:
25
+ requirements:
27
26
  - - ~>
28
- - !ruby/object:Gem::Version
29
- version: '2.0'
30
- - !ruby/object:Gem::Dependency
31
- name: appraisal
32
- requirement: !ruby/object:Gem::Requirement
27
+ - !ruby/object:Gem::Version
28
+ hash: 3
29
+ segments:
30
+ - 2
31
+ - 0
32
+ version: "2.0"
33
+ version_requirements: *id001
34
+ name: sprockets
35
+ - !ruby/object:Gem::Dependency
36
+ type: :development
37
+ prerelease: false
38
+ requirement: &id002 !ruby/object:Gem::Requirement
33
39
  none: false
34
- requirements:
40
+ requirements:
35
41
  - - ~>
36
- - !ruby/object:Gem::Version
37
- version: '0.4'
42
+ - !ruby/object:Gem::Version
43
+ hash: 3
44
+ segments:
45
+ - 0
46
+ - 4
47
+ version: "0.4"
48
+ version_requirements: *id002
49
+ name: appraisal
50
+ - !ruby/object:Gem::Dependency
38
51
  type: :development
39
52
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
53
+ requirement: &id003 !ruby/object:Gem::Requirement
41
54
  none: false
42
- requirements:
55
+ requirements:
43
56
  - - ~>
44
- - !ruby/object:Gem::Version
45
- version: '0.4'
46
- - !ruby/object:Gem::Dependency
57
+ - !ruby/object:Gem::Version
58
+ hash: 15
59
+ segments:
60
+ - 2
61
+ - 6
62
+ version: "2.6"
63
+ version_requirements: *id003
47
64
  name: rspec
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ~>
52
- - !ruby/object:Gem::Version
53
- version: '2.6'
65
+ - !ruby/object:Gem::Dependency
54
66
  type: :development
55
67
  prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
68
+ requirement: &id004 !ruby/object:Gem::Requirement
57
69
  none: false
58
- requirements:
70
+ requirements:
59
71
  - - ~>
60
- - !ruby/object:Gem::Version
61
- version: '2.6'
62
- - !ruby/object:Gem::Dependency
72
+ - !ruby/object:Gem::Version
73
+ hash: 11
74
+ segments:
75
+ - 1
76
+ - 2
77
+ version: "1.2"
78
+ version_requirements: *id004
63
79
  name: test-construct
64
- requirement: !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
67
- - - ~>
68
- - !ruby/object:Gem::Version
69
- version: '1.2'
80
+ - !ruby/object:Gem::Dependency
70
81
  type: :development
71
82
  prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
83
+ requirement: &id005 !ruby/object:Gem::Requirement
73
84
  none: false
74
- requirements:
75
- - - ~>
76
- - !ruby/object:Gem::Version
77
- version: '1.2'
78
- - !ruby/object:Gem::Dependency
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ hash: 3
89
+ segments:
90
+ - 0
91
+ version: "0"
92
+ version_requirements: *id005
79
93
  name: rake
80
- requirement: !ruby/object:Gem::Requirement
81
- none: false
82
- requirements:
83
- - - ! '>='
84
- - !ruby/object:Gem::Version
85
- version: '0'
86
- type: :development
87
- prerelease: false
88
- version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
- requirements:
91
- - - ! '>='
92
- - !ruby/object:Gem::Version
93
- version: '0'
94
94
  description: Asset path helpers for Sprockets 2.x applications
95
- email:
95
+ email:
96
96
  - me@petebrowne.com
97
97
  executables: []
98
+
98
99
  extensions: []
100
+
99
101
  extra_rdoc_files: []
100
- files:
102
+
103
+ files:
101
104
  - .gitignore
102
105
  - Appraisals
103
106
  - Gemfile
@@ -123,34 +126,37 @@ files:
123
126
  - sprockets-helpers.gemspec
124
127
  homepage: https://github.com/petebrowne/sprockets-helpers
125
128
  licenses: []
129
+
126
130
  post_install_message:
127
131
  rdoc_options: []
128
- require_paths:
132
+
133
+ require_paths:
129
134
  - lib
130
- required_ruby_version: !ruby/object:Gem::Requirement
135
+ required_ruby_version: !ruby/object:Gem::Requirement
131
136
  none: false
132
- requirements:
133
- - - ! '>='
134
- - !ruby/object:Gem::Version
135
- version: '0'
136
- segments:
137
+ requirements:
138
+ - - ">="
139
+ - !ruby/object:Gem::Version
140
+ hash: 3
141
+ segments:
137
142
  - 0
138
- hash: 193858515
139
- required_rubygems_version: !ruby/object:Gem::Requirement
143
+ version: "0"
144
+ required_rubygems_version: !ruby/object:Gem::Requirement
140
145
  none: false
141
- requirements:
142
- - - ! '>='
143
- - !ruby/object:Gem::Version
144
- version: '0'
145
- segments:
146
+ requirements:
147
+ - - ">="
148
+ - !ruby/object:Gem::Version
149
+ hash: 3
150
+ segments:
146
151
  - 0
147
- hash: 193858515
152
+ version: "0"
148
153
  requirements: []
154
+
149
155
  rubyforge_project: sprockets-helpers
150
- rubygems_version: 1.8.23
156
+ rubygems_version: 1.8.11
151
157
  signing_key:
152
158
  specification_version: 3
153
159
  summary: Asset path helpers for Sprockets 2.x applications
154
- test_files:
160
+ test_files:
155
161
  - spec/spec_helper.rb
156
162
  - spec/sprockets-helpers_spec.rb