decidim-dev 0.0.8.1 → 0.1.0

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: 2b8a9ae366f328aeb3eafe9f757406206105c659
4
- data.tar.gz: 3f07f850d45f8402a49c0ef976b50d64882c6e73
3
+ metadata.gz: 4f721241c80e35727701d3c95834b5985512330a
4
+ data.tar.gz: 3ee5aa44db023bbc53dbfb4bcd657c41d242c6f3
5
5
  SHA512:
6
- metadata.gz: 65cadd394c82d2e609c20aed7759586f99e397752ddfdae1c62b78b39b4cc2973055b7684b1970dc8c0c91e43d45437692b47bb5ff4f4cf0c0cdb34ec2d1efbd
7
- data.tar.gz: 25d300a1f9dd9e1fcb14048a4faf21393d3aa7211c31801606bd1dd49a64f8085ba5ecac714dc63adbddfce0b11070eb9b1db4052a90d80ce18b959015e6601f
6
+ metadata.gz: ea5444f71d034c18bab2e99db9d4068ede5d8d7c444a4d42f7fe8f1e6720df220d45c1003a51a323def7d88d8fd2f18221d088d0c51f96fe7589e13ca8482d62
7
+ data.tar.gz: 80b6d12afdfb9e526eb4768ec08e7ff726798a373a2584e9517b691f0eb9a1397b5462f2c7945c5871a60f183ea588f1e8f5bc0f2d163ea2990cde5558aa6f9e
@@ -2,5 +2,9 @@
2
2
  require "bundler/gem_tasks"
3
3
  require "rspec/core/rake_task"
4
4
 
5
- RSpec::Core::RakeTask.new(:spec)
5
+ RSpec::Core::RakeTask.new(:spec) do |t|
6
+ # The i18n_spec part needs to go first or it won't be include. It seems like a
7
+ # bug in RSpec to me... https://github.com/rspec/rspec-core/issues/2418
8
+ t.rspec_opts = "--pattern #{__dir__}/test/i18n_spec.rb,**/*_spec.rb"
9
+ end
6
10
  task default: [:spec]
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Decidim
2
3
  module Dev
3
4
  class Railtie < Rails::Railtie
@@ -2,7 +2,6 @@
2
2
  ENV["RAILS_ENV"] ||= "test"
3
3
 
4
4
  root_path = File.join(Dir.pwd, "..")
5
- engine_name = ENV["ENGINE_NAME"]
6
5
  engine_spec_dir = File.join(Dir.pwd, "spec")
7
6
  dummy_app_path = File.expand_path(File.join(root_path, "spec", "decidim_dummy_app"))
8
7
 
@@ -46,4 +45,3 @@ Dir["#{engine_spec_dir}/support/**/*.rb"].each { |f| require f }
46
45
  Dir["#{engine_spec_dir}/shared/**/*.rb"].each { |f| require f }
47
46
 
48
47
  require_relative "spec_helper"
49
- require_relative "i18n_spec"
@@ -1,11 +1,12 @@
1
+ # frozen_string_literal: true
1
2
  RSpec.configure do |config|
2
3
  config.before(:each) do
3
4
  # Set geocoder configuration in test mode
4
5
  Decidim.geocoder = {
5
6
  static_map_url: "http://www.example.org",
6
- here_app_id: '1234',
7
- here_app_code: '5678'
7
+ here_app_id: "1234",
8
+ here_app_code: "5678"
8
9
  }
9
10
  Geocoder.configure(lookup: :test)
10
11
  end
11
- end
12
+ end
@@ -5,8 +5,8 @@ RSpec.configure do |config|
5
5
  end
6
6
 
7
7
  config.around(:each) do |example|
8
- I18n.available_locales = %w{en ca es}
9
- Decidim.available_locales = %w{en ca es}
8
+ I18n.available_locales = %w(en ca es)
9
+ Decidim.available_locales = %w(en ca es)
10
10
 
11
11
  previous_locale = I18n.locale
12
12
  example.run
@@ -1,2 +1,3 @@
1
+ # frozen_string_literal: true
1
2
  require "webmock/rspec"
2
3
  WebMock.allow_net_connect!
@@ -61,7 +61,7 @@ module Decidim
61
61
 
62
62
  def test_env
63
63
  gsub_file "#{dummy_app_path}/config/environments/test.rb",
64
- /allow_forgery_protection = (.*)/, 'allow_forgery_protection = true'
64
+ /allow_forgery_protection = (.*)/, "allow_forgery_protection = true"
65
65
  end
66
66
 
67
67
  private
@@ -1,6 +1,7 @@
1
+ # frozen_string_literal: true
1
2
  module AutoprefixerRails
2
3
  class Sprockets
3
- self.singleton_class.send(:alias_method, :call_original, :call)
4
+ singleton_class.send(:alias_method, :call_original, :call)
4
5
 
5
6
  def self.call(input)
6
7
  filename = input[:name]
@@ -8,9 +9,9 @@ module AutoprefixerRails
8
9
  # Disable autoprefixer for the graphiql-rails gem's assets because it
9
10
  # breaks some of the API tests when the '-webkit' prefixes are applied to
10
11
  # its CSS.
11
- return if filename.match(/^graphiql\/.*/)
12
+ return if filename =~ %r{^graphiql/.*}
12
13
 
13
- self.call_original(input)
14
+ call_original(input)
14
15
  end
15
16
  end
16
17
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require "generators/decidim/dummy_generator"
2
3
 
3
4
  namespace :decidim do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-04-27 00:00:00.000000000 Z
13
+ date: 2017-05-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: decidim
@@ -18,14 +18,14 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.0.8.1
21
+ version: 0.1.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: 0.0.8.1
28
+ version: 0.1.0
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: factory_girl_rails
31
31
  requirement: !ruby/object:Gem::Requirement
@@ -60,14 +60,14 @@ dependencies:
60
60
  requirements:
61
61
  - - "~>"
62
62
  - !ruby/object:Gem::Version
63
- version: 2.12.0
63
+ version: 2.13.0
64
64
  type: :runtime
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - "~>"
69
69
  - !ruby/object:Gem::Version
70
- version: 2.12.0
70
+ version: 2.13.0
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: capybara-screenshot
73
73
  requirement: !ruby/object:Gem::Requirement
@@ -172,14 +172,14 @@ dependencies:
172
172
  requirements:
173
173
  - - '='
174
174
  - !ruby/object:Gem::Version
175
- version: 0.9.12
175
+ version: 0.9.13
176
176
  type: :runtime
177
177
  prerelease: false
178
178
  version_requirements: !ruby/object:Gem::Requirement
179
179
  requirements:
180
180
  - - '='
181
181
  - !ruby/object:Gem::Version
182
- version: 0.9.12
182
+ version: 0.9.13
183
183
  - !ruby/object:Gem::Dependency
184
184
  name: faker
185
185
  requirement: !ruby/object:Gem::Requirement
@@ -256,28 +256,28 @@ dependencies:
256
256
  requirements:
257
257
  - - "~>"
258
258
  - !ruby/object:Gem::Version
259
- version: '0.47'
259
+ version: 0.46.0
260
260
  type: :runtime
261
261
  prerelease: false
262
262
  version_requirements: !ruby/object:Gem::Requirement
263
263
  requirements:
264
264
  - - "~>"
265
265
  - !ruby/object:Gem::Version
266
- version: '0.47'
266
+ version: 0.46.0
267
267
  - !ruby/object:Gem::Dependency
268
268
  name: db-query-matchers
269
269
  requirement: !ruby/object:Gem::Requirement
270
270
  requirements:
271
271
  - - "~>"
272
272
  - !ruby/object:Gem::Version
273
- version: 0.7.0
273
+ version: 0.8.0
274
274
  type: :runtime
275
275
  prerelease: false
276
276
  version_requirements: !ruby/object:Gem::Requirement
277
277
  requirements:
278
278
  - - "~>"
279
279
  - !ruby/object:Gem::Version
280
- version: 0.7.0
280
+ version: 0.8.0
281
281
  - !ruby/object:Gem::Dependency
282
282
  name: letter_opener_web
283
283
  requirement: !ruby/object:Gem::Requirement
@@ -312,14 +312,14 @@ dependencies:
312
312
  requirements:
313
313
  - - "~>"
314
314
  - !ruby/object:Gem::Version
315
- version: 2.3.2
315
+ version: 3.0.1
316
316
  type: :runtime
317
317
  prerelease: false
318
318
  version_requirements: !ruby/object:Gem::Requirement
319
319
  requirements:
320
320
  - - "~>"
321
321
  - !ruby/object:Gem::Version
322
- version: 2.3.2
322
+ version: 3.0.1
323
323
  description: Utilities and tools we need to develop Decidim
324
324
  email:
325
325
  - josepjaume@gmail.com