mbj-assets 0.0.10 → 0.0.11

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: adae042b3623c1063016662186d77fc3df343c9c
4
- data.tar.gz: b3bd6559c37824e9e398ca7075e3851868a35f20
3
+ metadata.gz: c10ae67ecdd2446cdbee1a037454690ae209a057
4
+ data.tar.gz: cdab21fbdc8c71749d80060d069d8dff5ddca202
5
5
  SHA512:
6
- metadata.gz: 15a854f81f9581c99ce25eea61d88c1ce012747800911591c4097305d78db5a817f1228a7984978a86ac832a102dd140e5cfb2bf3b8314ee0fcc8bb6b0eafae0
7
- data.tar.gz: 7be6dd27e173dedebbb8e10a7c56392dd35086d60d7362a18d3bdf8dd6030b71f76700d8e5dea1a2ecf766deaf3a0bc56b92cffac51842ec653f6ef000fc1ea1
6
+ metadata.gz: f310a8bc36f45a6dfa4e62c62158c5baa209bc6f549ef91b74dd4d853d10e0c255cd31e8986910b9cd250a92450cf86805519cbb8152f83f17056e6a2746e080
7
+ data.tar.gz: 0f916455ae52ecfcebca9d6293c36ee02918fd64329270567060aa6cbe2cf1ec0b3efad9ccfb3d50c50508b0b4d5ba2aa5e4a89acad4e9b73836a20cc2763553
@@ -0,0 +1,7 @@
1
+ AllCops:
2
+ Include:
3
+ - 'Gemfile'
4
+ Exclude:
5
+ - 'Gemfile.devtools'
6
+ - 'vendor/**'
7
+ - 'benchmarks/**'
@@ -1,12 +1,8 @@
1
1
  language: ruby
2
2
  script: 'bundle exec rake ci'
3
3
  rvm:
4
- - 1.9.2
5
4
  - 1.9.3
6
5
  - 2.0.0
6
+ - 2.1.2
7
+ - rbx-2
7
8
  - jruby-19mode
8
- - jruby-head
9
- - rbx-19mode
10
- matrix:
11
- allowed_failures:
12
- - rvm: ruby-head
data/Gemfile CHANGED
@@ -3,4 +3,6 @@ source 'https://rubygems.org'
3
3
  gemspec
4
4
 
5
5
  gem 'devtools', :git => 'https://github.com/rom-rb/devtools.git'
6
+ gem 'request', :git => 'https://github.com/mbj/request.git'
7
+ gem 'response', :git => 'https://github.com/mbj/response.git'
6
8
  eval_gemfile 'Gemfile.devtools'
@@ -1,47 +1,63 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  group :development do
4
- gem 'rake', '~> 10.1.0'
5
- gem 'rspec', '~> 2.14.1'
6
- gem 'yard', '~> 0.8.7'
4
+ gem 'rake', '~> 10.3.2'
5
+ gem 'rspec', '~> 3.0.0'
6
+ gem 'rspec-its', '~> 1.0.1'
7
+ gem 'yard', '~> 0.8.7.4'
8
+
9
+ platform :rbx do
10
+ gem 'rubysl-singleton', '~> 2.0.0'
11
+ end
7
12
  end
8
13
 
9
14
  group :yard do
10
- gem 'kramdown', '~> 1.2.0'
15
+ gem 'kramdown', '~> 1.3.3'
11
16
  end
12
17
 
13
18
  group :guard do
14
- gem 'guard', '~> 1.8.1'
15
- gem 'guard-bundler', '~> 1.0.0'
16
- gem 'guard-rspec', '~> 3.0.2'
17
- gem 'guard-rubocop', '~> 0.2.0'
18
- gem 'guard-mutant', '~> 0.0.1'
19
+ gem 'guard', '~> 2.6.1'
20
+ gem 'guard-bundler', '~> 2.0.0'
21
+ gem 'guard-rspec', '~> 4.2.9'
22
+ gem 'guard-rubocop', '~> 1.1.0'
19
23
 
20
24
  # file system change event handling
21
- gem 'listen', '~> 1.3.0'
25
+ gem 'listen', '~> 2.7.7'
22
26
  gem 'rb-fchange', '~> 0.0.6', require: false
23
- gem 'rb-fsevent', '~> 0.9.3', require: false
24
- gem 'rb-inotify', '~> 0.9.0', require: false
27
+ gem 'rb-fsevent', '~> 0.9.4', require: false
28
+ gem 'rb-inotify', '~> 0.9.5', require: false
25
29
 
26
30
  # notification handling
27
- gem 'libnotify', '~> 0.8.0', require: false
31
+ gem 'libnotify', '~> 0.8.3', require: false
28
32
  gem 'rb-notifu', '~> 0.0.4', require: false
29
33
  gem 'terminal-notifier-guard', '~> 1.5.3', require: false
30
34
  end
31
35
 
32
36
  group :metrics do
33
- gem 'coveralls', '~> 0.6.7'
34
- gem 'flay', '~> 2.4.0'
35
- gem 'flog', '~> 4.1.1'
36
- gem 'reek', '~> 1.3.2'
37
- gem 'rubocop', '~> 0.13.0'
37
+ gem 'coveralls', '~> 0.7.0'
38
+ gem 'flay', '~> 2.5.0'
39
+ gem 'flog', '~> 4.2.1'
40
+ gem 'reek', '~> 1.3.7'
41
+ gem 'rubocop', '~> 0.23.0'
38
42
  gem 'simplecov', '~> 0.7.1'
39
- gem 'yardstick', '~> 0.9.7', git: 'https://github.com/dkubb/yardstick.git'
43
+ gem 'yardstick', '~> 0.9.9'
44
+
45
+ platforms :mri do
46
+ gem 'mutant', '~> 0.6.0'
47
+ gem 'mutant-rspec', '~> 0.6.0'
48
+ end
40
49
 
41
50
  platforms :ruby_19, :ruby_20 do
42
- gem 'mutant', git: 'https://github.com/mbj/mutant.git'
43
51
  gem 'yard-spellcheck', '~> 0.1.5'
44
52
  end
53
+
54
+ platform :rbx do
55
+ gem 'json', '~> 1.8.1'
56
+ gem 'racc', '~> 1.4.11'
57
+ gem 'rubysl-logger', '~> 2.0.0'
58
+ gem 'rubysl-open-uri', '~> 2.0.0'
59
+ gem 'rubysl-prettyprint', '~> 2.0.3'
60
+ end
45
61
  end
46
62
 
47
63
  group :benchmarks do
@@ -50,6 +66,6 @@ end
50
66
 
51
67
  platform :jruby do
52
68
  group :jruby do
53
- gem 'jruby-openssl', '~> 0.8.5'
69
+ gem 'jruby-openssl', '~> 0.9.4'
54
70
  end
55
- end
71
+ end
data/Rakefile CHANGED
@@ -1,2 +1,8 @@
1
1
  require 'devtools'
2
2
  Devtools.init_rake_tasks
3
+
4
+ namespace :metrics do
5
+ task :mutant => :coverage do
6
+ $stderr.puts 'Mutation coverage is disable for this repository'
7
+ end
8
+ end
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = 'mbj-assets'
5
- gem.version = '0.0.10'
5
+ gem.version = '0.0.11'
6
6
  gem.authors = [ 'Markus Schirp' ]
7
7
  gem.license = 'MIT'
8
8
  gem.email = [ 'mbj@schirp-dso.com' ]
@@ -15,14 +15,14 @@ Gem::Specification.new do |gem|
15
15
  gem.test_files = `git ls-files -- spec`.split("\n")
16
16
  gem.extra_rdoc_files = %w[TODO]
17
17
 
18
- gem.add_runtime_dependency('adamantium', '~> 0.1.0')
19
- gem.add_runtime_dependency('ice_nine', '~> 0.9.0')
20
- gem.add_runtime_dependency('concord', '~> 0.1.4')
21
- gem.add_runtime_dependency('equalizer', '~> 0.0.5')
18
+ gem.add_runtime_dependency('adamantium', '~> 0.2.0')
19
+ gem.add_runtime_dependency('ice_nine', '~> 0.11.0')
20
+ gem.add_runtime_dependency('concord', '~> 0.1.5')
21
+ gem.add_runtime_dependency('equalizer', '~> 0.0.9')
22
22
  gem.add_runtime_dependency('response', '~> 0.0.4')
23
23
  gem.add_runtime_dependency('request', '~> 0.0.5')
24
- gem.add_runtime_dependency('abstract_type', '~> 0.0.5')
24
+ gem.add_runtime_dependency('abstract_type', '~> 0.0.7')
25
25
  gem.add_runtime_dependency('anima', '~> 0.2.0')
26
- gem.add_runtime_dependency('sass', '~> 3.2.4')
27
- gem.add_runtime_dependency('coffee-script', '~> 2.2.0')
26
+ gem.add_runtime_dependency('sass', '~> 3.4.3')
27
+ gem.add_runtime_dependency('coffee-script', '~> 2.3.0')
28
28
  end
@@ -1,2 +1,2 @@
1
1
  ---
2
- threshold: 9.4
2
+ threshold: 11.0
@@ -0,0 +1,82 @@
1
+ inherit_from: ../.rubocop.yml
2
+
3
+ AllCops:
4
+ Include:
5
+ - '**/*.rake'
6
+ - 'Gemfile'
7
+ - 'Gemfile.triage'
8
+
9
+ # Avoid parameter lists longer than five parameters.
10
+ ParameterLists:
11
+ Max: 3
12
+ CountKeywordArgs: true
13
+
14
+ MethodLength:
15
+ CountComments: false
16
+ Max: 15
17
+
18
+ # Avoid more than `Max` levels of nesting.
19
+ BlockNesting:
20
+ Max: 3
21
+
22
+ # Align with the style guide.
23
+ CollectionMethods:
24
+ PreferredMethods:
25
+ collect: 'map'
26
+ inject: 'reduce'
27
+ find: 'detect'
28
+ find_all: 'select'
29
+
30
+ # Limit line length
31
+ LineLength:
32
+ Max: 113 # TODO: lower to 79 once the rubocop branch in shared/Gemfile is removed
33
+
34
+ ClassLength:
35
+ Max: 204
36
+
37
+ # Disabled because of indenting with private keyword in class bodies.
38
+ IndentationWidth:
39
+ Enabled: false
40
+
41
+ # I like raise more
42
+ SignalException:
43
+ Enabled: false
44
+
45
+ # False positive in unparser source
46
+ OneLineConditional:
47
+ Enabled: false
48
+
49
+ Documentation:
50
+ Enabled: false
51
+
52
+ # Disable documentation checking until a class needs to be documented once
53
+ Documentation:
54
+ Enabled: false
55
+
56
+ # Do not favor modifier if/unless usage when you have a single-line body
57
+ IfUnlessModifier:
58
+ Enabled: false
59
+
60
+ # Allow case equality operator (in limited use within the specs)
61
+ CaseEquality:
62
+ Enabled: false
63
+
64
+ # Constants do not always have to use SCREAMING_SNAKE_CASE
65
+ ConstantName:
66
+ Enabled: false
67
+
68
+ # Not all trivial readers/writers can be defined with attr_* methods
69
+ TrivialAccessors:
70
+ Enabled: false
71
+
72
+ # Do not prefer do/end over {} for multiline blocks
73
+ Blocks:
74
+ Enabled: false
75
+
76
+ # I like to have an empty line before closing the currently opened body
77
+ EmptyLinesAroundBody:
78
+ Enabled: false
79
+
80
+ # I like my style more
81
+ AccessModifierIndentation:
82
+ Enabled: false
@@ -11,7 +11,6 @@ module Assets
11
11
  # @api private
12
12
  #
13
13
  def asset
14
- rule = self.rule
15
14
  Asset.new(
16
15
  :name => rule.name,
17
16
  :mime => rule.mime,
@@ -1,3 +1,5 @@
1
+ # encoding: utf-8
2
+
1
3
  require 'spec_helper'
2
4
 
3
5
  describe Assets, 'and spiking around' do
@@ -83,7 +85,7 @@ describe Assets, 'and spiking around' do
83
85
  let(:extra_hash) { {} }
84
86
  let(:expected_body) { File.binread('spec/assets/test.jpg') }
85
87
 
86
- its(:content_type) { should eql('image/jpg') }
88
+ its(:content_type) { should eql('image/jpeg') }
87
89
  its(:last_modified) { should eql(Time.httpdate(asset.created_at.httpdate)) }
88
90
  its(:cache_control) { should eql('max-age=120, must-revalidate') }
89
91
  its(:status) { should be(Response::Status::OK) }
metadata CHANGED
@@ -1,155 +1,155 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mbj-assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Markus Schirp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-16 00:00:00.000000000 Z
11
+ date: 2014-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: adamantium
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.1.0
19
+ version: 0.2.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.1.0
26
+ version: 0.2.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: ice_nine
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.9.0
33
+ version: 0.11.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.9.0
40
+ version: 0.11.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: concord
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.1.4
47
+ version: 0.1.5
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.1.4
54
+ version: 0.1.5
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: equalizer
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.0.5
61
+ version: 0.0.9
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.0.5
68
+ version: 0.0.9
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: response
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: 0.0.4
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: 0.0.4
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: request
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ~>
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
89
  version: 0.0.5
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ~>
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: 0.0.5
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: abstract_type
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ~>
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 0.0.5
103
+ version: 0.0.7
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ~>
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 0.0.5
110
+ version: 0.0.7
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: anima
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ~>
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
117
  version: 0.2.0
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ~>
122
+ - - "~>"
123
123
  - !ruby/object:Gem::Version
124
124
  version: 0.2.0
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: sass
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - ~>
129
+ - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 3.2.4
131
+ version: 3.4.3
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ~>
136
+ - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 3.2.4
138
+ version: 3.4.3
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: coffee-script
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - ~>
143
+ - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: 2.2.0
145
+ version: 2.3.0
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - ~>
150
+ - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: 2.2.0
152
+ version: 2.3.0
153
153
  description: Playground for a small assets system
154
154
  email:
155
155
  - mbj@schirp-dso.com
@@ -158,9 +158,10 @@ extensions: []
158
158
  extra_rdoc_files:
159
159
  - TODO
160
160
  files:
161
- - .gitignore
162
- - .rspec
163
- - .travis.yml
161
+ - ".gitignore"
162
+ - ".rspec"
163
+ - ".rubocop.yml"
164
+ - ".travis.yml"
164
165
  - Gemfile
165
166
  - Gemfile.devtools
166
167
  - Guardfile
@@ -169,9 +170,9 @@ files:
169
170
  - assets.gemspec
170
171
  - config/flay.yml
171
172
  - config/flog.yml
172
- - config/mutant.yml
173
173
  - config/reek.yml
174
174
  - config/roodi.yml
175
+ - config/rubocop.yml
175
176
  - config/yardstick.yml
176
177
  - lib/assets.rb
177
178
  - lib/assets/asset.rb
@@ -211,17 +212,17 @@ require_paths:
211
212
  - lib
212
213
  required_ruby_version: !ruby/object:Gem::Requirement
213
214
  requirements:
214
- - - '>='
215
+ - - ">="
215
216
  - !ruby/object:Gem::Version
216
217
  version: '0'
217
218
  required_rubygems_version: !ruby/object:Gem::Requirement
218
219
  requirements:
219
- - - '>='
220
+ - - ">="
220
221
  - !ruby/object:Gem::Version
221
222
  version: '0'
222
223
  requirements: []
223
224
  rubyforge_project:
224
- rubygems_version: 2.0.14
225
+ rubygems_version: 2.2.2
225
226
  signing_key:
226
227
  specification_version: 4
227
228
  summary: Playground for a small assets system
@@ -1,3 +0,0 @@
1
- ---
2
- name: assets
3
- namespace: Assets