postageapp 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/postageapp.rb +1 -4
- data/lib/postageapp/{rails.rb → rails/rails.rb} +0 -0
- data/lib/postageapp/rails/railtie.rb +14 -0
- data/postageapp.gemspec +4 -2
- data/rails/init.rb +2 -0
- metadata +5 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.4
|
data/lib/postageapp.rb
CHANGED
@@ -12,6 +12,7 @@ require 'postageapp/logger'
|
|
12
12
|
require 'postageapp/request'
|
13
13
|
require 'postageapp/failed_request'
|
14
14
|
require 'postageapp/response'
|
15
|
+
require 'postageapp/rails/railtie' if defined?(Rails::Railtie)
|
15
16
|
|
16
17
|
module PostageApp
|
17
18
|
|
@@ -50,9 +51,5 @@ module PostageApp
|
|
50
51
|
)
|
51
52
|
end
|
52
53
|
end
|
53
|
-
|
54
54
|
end
|
55
55
|
end
|
56
|
-
|
57
|
-
# Loading Rails hook
|
58
|
-
require 'postageapp/rails' if defined?(Rails)
|
File without changes
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'postageapp'
|
2
|
+
require 'postageapp/mailer' if defined?(ActionMailer)
|
3
|
+
|
4
|
+
class PostageApp::Railtie < Rails::Railtie
|
5
|
+
|
6
|
+
config.after_initialize do
|
7
|
+
PostageApp.configure do |config|
|
8
|
+
config.framework = "Rails #{::Rails.version}" if defined?(::Rails.version)
|
9
|
+
config.project_root = ::Rails.root if defined?(::Rails.root)
|
10
|
+
config.environment = ::Rails.env if defined?(::Rails.env)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
end
|
data/postageapp.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{postageapp}
|
8
|
-
s.version = "1.0.
|
8
|
+
s.version = "1.0.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Oleg Khabarov, The Working Group Inc"]
|
@@ -34,12 +34,14 @@ Gem::Specification.new do |s|
|
|
34
34
|
"lib/postageapp/mailer.rb",
|
35
35
|
"lib/postageapp/mailer/mailer_2.rb",
|
36
36
|
"lib/postageapp/mailer/mailer_3.rb",
|
37
|
-
"lib/postageapp/rails.rb",
|
37
|
+
"lib/postageapp/rails/rails.rb",
|
38
|
+
"lib/postageapp/rails/railtie.rb",
|
38
39
|
"lib/postageapp/request.rb",
|
39
40
|
"lib/postageapp/response.rb",
|
40
41
|
"lib/postageapp/utils.rb",
|
41
42
|
"lib/postageapp/version.rb",
|
42
43
|
"postageapp.gemspec",
|
44
|
+
"rails/init.rb",
|
43
45
|
"test/configuration_test.rb",
|
44
46
|
"test/failed_request_test.rb",
|
45
47
|
"test/helper.rb",
|
data/rails/init.rb
ADDED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 1.0.
|
8
|
+
- 4
|
9
|
+
version: 1.0.4
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Oleg Khabarov, The Working Group Inc
|
@@ -72,12 +72,14 @@ files:
|
|
72
72
|
- lib/postageapp/mailer.rb
|
73
73
|
- lib/postageapp/mailer/mailer_2.rb
|
74
74
|
- lib/postageapp/mailer/mailer_3.rb
|
75
|
-
- lib/postageapp/rails.rb
|
75
|
+
- lib/postageapp/rails/rails.rb
|
76
|
+
- lib/postageapp/rails/railtie.rb
|
76
77
|
- lib/postageapp/request.rb
|
77
78
|
- lib/postageapp/response.rb
|
78
79
|
- lib/postageapp/utils.rb
|
79
80
|
- lib/postageapp/version.rb
|
80
81
|
- postageapp.gemspec
|
82
|
+
- rails/init.rb
|
81
83
|
- test/configuration_test.rb
|
82
84
|
- test/failed_request_test.rb
|
83
85
|
- test/helper.rb
|