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 +4 -4
- data/Rakefile +7 -0
- data/lib/errapi-rails/version.rb +1 -1
- data/lib/generators/errapi/install_generator.rb +21 -0
- data/lib/generators/templates/README.txt +1 -0
- data/lib/generators/templates/initializer.rb +6 -0
- data/test/dummy/log/test.log +11 -0
- metadata +21 -7
- data/lib/generators/errapi-rails/install_generator.rb +0 -26
- data/lib/generators/templates/errapi.rb +0 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c45c5ed1fa8b23216e144d3bfc17b049804a9423
|
4
|
+
data.tar.gz: 339de963dc9f222778fd5d49e26c4f8338e061ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe338ac50858ad38b371cd7e47ba43382ff4e11f67f736adeed22f573a69eaf5a20d2962f0c1cacb18966890be30d88231ad83d6697f3209993316a330da2629
|
7
|
+
data.tar.gz: 70331729c2962d13af198ad5ceb10fb5402558baaf207fa32d98b96f9a0c11c74b0d3c22dc7578e8faa80cbefa2ae657b484b18765a3f2b9ddc19e77e8068a7b
|
data/Rakefile
CHANGED
data/lib/errapi-rails/version.rb
CHANGED
@@ -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
|
data/test/dummy/log/test.log
CHANGED
@@ -1,3 +1,14 @@
|
|
1
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2
|
+
---------------------------
|
3
|
+
ErrapiRailsTest: test_truth
|
4
|
+
---------------------------
|
5
|
+
[1m[35m (0.0ms)[0m 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.
|
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-
|
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.
|
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.
|
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
|
81
|
+
- lib/generators/errapi/install_generator.rb
|
68
82
|
- lib/generators/templates/README.txt
|
69
|
-
- lib/generators/templates/
|
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.
|
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
|