wireframe-apn_on_rails 0.3.0.20100208143726 → 0.3.0.20100830174035

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/apn_on_rails/apn_on_rails.rb +7 -6
  2. metadata +28 -11
@@ -41,10 +41,6 @@ module APN # :nodoc:
41
41
  MAX_BYTES = 255
42
42
  def initialize(message) # :nodoc:
43
43
  super("The maximum size allowed for a notification payload is #{MAX_BYTES} bytes: '#{message}'")
44
- @overage = message.size.to_i - MAX_BYTES
45
- end
46
- def overage
47
- @overage
48
44
  end
49
45
  end
50
46
 
@@ -60,6 +56,11 @@ end
60
56
  path = File.join(File.dirname(__FILE__), 'app', dir)
61
57
  $LOAD_PATH << path
62
58
  # puts "Adding #{path}"
63
- ActiveSupport::Dependencies.load_paths << path
64
- ActiveSupport::Dependencies.load_once_paths.delete(path)
59
+ if ActiveSupport::VERSION::MAJOR >= 3
60
+ ActiveSupport::Dependencies.autoload_paths << path
61
+ ActiveSupport::Dependencies.autoload_once_paths.delete(path)
62
+ else
63
+ ActiveSupport::Dependencies.load_paths << path
64
+ ActiveSupport::Dependencies.load_once_paths.delete(path)
65
+ end
65
66
  end
metadata CHANGED
@@ -1,28 +1,39 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wireframe-apn_on_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0.20100208143726
4
+ hash: 40201660348145
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 3
9
+ - 0
10
+ - 20100830174035
11
+ version: 0.3.0.20100830174035
5
12
  platform: ruby
6
13
  authors:
7
- - ryansonnek
14
+ - root
8
15
  autorequire:
9
16
  bindir: bin
10
17
  cert_chain: []
11
18
 
12
- date: 2010-02-08 00:00:00 -06:00
19
+ date: 2010-08-30 00:00:00 -05:00
13
20
  default_executable:
14
21
  dependencies:
15
22
  - !ruby/object:Gem::Dependency
16
23
  name: configatron
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
24
+ prerelease: false
25
+ requirement: &id001 !ruby/object:Gem::Requirement
26
+ none: false
20
27
  requirements:
21
28
  - - ">="
22
29
  - !ruby/object:Gem::Version
30
+ hash: 3
31
+ segments:
32
+ - 0
23
33
  version: "0"
24
- version:
25
- description: "apn_on_rails was developed by: ryansonnek"
34
+ type: :runtime
35
+ version_requirements: *id001
36
+ description: "apn_on_rails was developed by: root"
26
37
  email: mark@markbates.com
27
38
  executables: []
28
39
 
@@ -59,21 +70,27 @@ rdoc_options: []
59
70
  require_paths:
60
71
  - lib
61
72
  required_ruby_version: !ruby/object:Gem::Requirement
73
+ none: false
62
74
  requirements:
63
75
  - - ">="
64
76
  - !ruby/object:Gem::Version
77
+ hash: 3
78
+ segments:
79
+ - 0
65
80
  version: "0"
66
- version:
67
81
  required_rubygems_version: !ruby/object:Gem::Requirement
82
+ none: false
68
83
  requirements:
69
84
  - - ">="
70
85
  - !ruby/object:Gem::Version
86
+ hash: 3
87
+ segments:
88
+ - 0
71
89
  version: "0"
72
- version:
73
90
  requirements: []
74
91
 
75
92
  rubyforge_project: magrathea
76
- rubygems_version: 1.3.5
93
+ rubygems_version: 1.3.7
77
94
  signing_key:
78
95
  specification_version: 3
79
96
  summary: apn_on_rails