errapi-rails 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: 5321259841d318ede218bc92c96723641910e759
4
- data.tar.gz: 43f5687f26b4e67ce4ca2a4d6ea59e9f8fc5ba98
3
+ metadata.gz: c45c5ed1fa8b23216e144d3bfc17b049804a9423
4
+ data.tar.gz: 339de963dc9f222778fd5d49e26c4f8338e061ef
5
5
  SHA512:
6
- metadata.gz: 117c7ef876d1f92377ca0ee1157e0d3fa01aa8d7105d83e68e52f9b4c300ec1fa03f52585b24c324f7cae692aae2756465cf23c00d23ec87b20cff62efc6f6df
7
- data.tar.gz: 3fd401e4407387f3983bf420316d3c5552d9f6c0c65e2bba27a640ab6c582f794bf20020a9354bd466d841ac2740c76b314538d8c2ec6253622a55fc89f152aa
6
+ metadata.gz: fe338ac50858ad38b371cd7e47ba43382ff4e11f67f736adeed22f573a69eaf5a20d2962f0c1cacb18966890be30d88231ad83d6697f3209993316a330da2629
7
+ data.tar.gz: 70331729c2962d13af198ad5ceb10fb5402558baaf207fa32d98b96f9a0c11c74b0d3c22dc7578e8faa80cbefa2ae657b484b18765a3f2b9ddc19e77e8068a7b
data/Rakefile CHANGED
@@ -32,3 +32,10 @@ end
32
32
 
33
33
 
34
34
  task default: :test
35
+
36
+
37
+ # version tasks
38
+ require 'rake-version'
39
+ RakeVersion::Tasks.new do |v|
40
+ v.copy 'lib/errapi-rails/version.rb'
41
+ end
@@ -1,5 +1,5 @@
1
1
  module Errapi
2
2
  module Rails
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
@@ -0,0 +1,21 @@
1
+ require 'rails/generators/base'
2
+
3
+ module Errapi
4
+ class InstallGenerator < ::Rails::Generators::Base
5
+ source_root File.expand_path("../../templates", __FILE__)
6
+
7
+ desc "Creates an errapi initializer and copy locale files to your application."
8
+
9
+ def copy_initializer
10
+ template "initializer.rb", "config/initializers/errapi.rb"
11
+ end
12
+
13
+ def copy_locale
14
+ copy_file "../../../config/locales/en.yml", "config/locales/errapi.en.yml"
15
+ end
16
+
17
+ def show_readme
18
+ readme "README.txt" if behavior == :invoke
19
+ end
20
+ end
21
+ end
@@ -1,3 +1,4 @@
1
1
 
2
2
  Edit "config/initializers/errapi.rb" to configure validations.
3
+ English error message translations have been copied to "config/locales/errapi.en.yml".
3
4
 
@@ -0,0 +1,6 @@
1
+ Errapi.configure do |config|
2
+
3
+ # Configure error serializers to switch to camel-case notation for properties
4
+ # and values (e.g. "locationType" instead of "location_type").
5
+ # config.options.camelize = true
6
+ end
@@ -1,3 +1,14 @@
1
+  (0.1ms) begin transaction
2
+ ---------------------------
3
+ ErrapiRailsTest: test_truth
4
+ ---------------------------
5
+  (0.0ms) rollback transaction
6
+ ---------------------------
7
+ ErrapiRailsTest: test_truth
8
+ ---------------------------
9
+ ---------------------------
10
+ ErrapiRailsTest: test_truth
11
+ ---------------------------
1
12
  ---------------------------
2
13
  ErrapiRailsTest: test_truth
3
14
  ---------------------------
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: errapi-rails
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
  - Simon Oulevay
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-26 00:00:00.000000000 Z
11
+ date: 2015-01-27 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.1.3
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.1.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: sqlite3
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake-version
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
55
69
  description: Integrates the errapi gem into Ruby on Rails, including generators for
56
70
  configuration.
57
71
  email:
@@ -64,9 +78,9 @@ files:
64
78
  - config/locales/en.yml
65
79
  - lib/errapi-rails.rb
66
80
  - lib/errapi-rails/version.rb
67
- - lib/generators/errapi-rails/install_generator.rb
81
+ - lib/generators/errapi/install_generator.rb
68
82
  - lib/generators/templates/README.txt
69
- - lib/generators/templates/errapi.rb
83
+ - lib/generators/templates/initializer.rb
70
84
  - test/dummy/README.rdoc
71
85
  - test/dummy/Rakefile
72
86
  - test/dummy/app/assets/javascripts/application.js
@@ -123,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
137
  version: '0'
124
138
  requirements: []
125
139
  rubyforge_project:
126
- rubygems_version: 2.4.5
140
+ rubygems_version: 2.4.3
127
141
  signing_key:
128
142
  specification_version: 4
129
143
  summary: Errapi integration into Ruby on Rails.
@@ -1,26 +0,0 @@
1
- require 'rails/generators/base'
2
-
3
- module Errapi
4
- module Rails
5
- module Generators
6
- class InstallGenerator < Rails::Generators::Base
7
- source_root File.expand_path("../../templates", __FILE__)
8
-
9
- desc "Creates an errapi initializer and copy locale files to your application."
10
- #class_option :orm
11
-
12
- def copy_initializer
13
- template "errapi.rb", "config/initializers/errapi.rb"
14
- end
15
-
16
- def copy_locale
17
- copy_file "../../../config/locales/en.yml", "config/locales/errapi.en.yml"
18
- end
19
-
20
- def show_readme
21
- readme "README.txt" if behavior == :invoke
22
- end
23
- end
24
- end
25
- end
26
- end
@@ -1,2 +0,0 @@
1
- Errapi.configure do
2
- end