c2dm 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +54 -0
- data/Gemfile +2 -13
- data/Rakefile +1 -47
- data/c2dm.gemspec +16 -62
- data/lib/c2dm.rb +1 -1
- metadata +16 -69
- data/Gemfile.lock +0 -29
- data/VERSION +0 -1
- data/test/helper.rb +0 -18
- data/test/test_c2dm.rb +0 -7
data/.gitignore
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
<<<<<<< HEAD
|
2
|
+
*.gem
|
3
|
+
.bundle
|
4
|
+
Gemfile.lock
|
5
|
+
pkg/*
|
6
|
+
=======
|
7
|
+
# rcov generated
|
8
|
+
coverage
|
9
|
+
|
10
|
+
# rdoc generated
|
11
|
+
rdoc
|
12
|
+
|
13
|
+
# yard generated
|
14
|
+
doc
|
15
|
+
.yardoc
|
16
|
+
|
17
|
+
# bundler
|
18
|
+
.bundle
|
19
|
+
|
20
|
+
# jeweler generated
|
21
|
+
pkg
|
22
|
+
|
23
|
+
# Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
|
24
|
+
#
|
25
|
+
# * Create a file at ~/.gitignore
|
26
|
+
# * Include files you want ignored
|
27
|
+
# * Run: git config --global core.excludesfile ~/.gitignore
|
28
|
+
#
|
29
|
+
# After doing this, these files will be ignored in all your git projects,
|
30
|
+
# saving you from having to 'pollute' every project you touch with them
|
31
|
+
#
|
32
|
+
# Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
|
33
|
+
#
|
34
|
+
# For MacOS:
|
35
|
+
#
|
36
|
+
#.DS_Store
|
37
|
+
#
|
38
|
+
# For TextMate
|
39
|
+
#*.tmproj
|
40
|
+
#tmtags
|
41
|
+
#
|
42
|
+
# For emacs:
|
43
|
+
#*~
|
44
|
+
#\#*
|
45
|
+
#.\#*
|
46
|
+
#
|
47
|
+
# For vim:
|
48
|
+
#*.swp
|
49
|
+
|
50
|
+
bin
|
51
|
+
cache
|
52
|
+
gems
|
53
|
+
specifications
|
54
|
+
>>>>>>> a574da36fd93ce0acc0703513e6c77a5b586b502
|
data/Gemfile
CHANGED
@@ -1,15 +1,4 @@
|
|
1
1
|
source "http://rubygems.org"
|
2
|
-
# Add dependencies required to use your gem here.
|
3
|
-
# Example:
|
4
|
-
# gem "activesupport", ">= 2.3.5"
|
5
2
|
|
6
|
-
#
|
7
|
-
|
8
|
-
gem "httparty"
|
9
|
-
|
10
|
-
group :development do
|
11
|
-
gem "shoulda", ">= 0"
|
12
|
-
gem "bundler", "~> 1.0.0"
|
13
|
-
gem "jeweler", "~> 1.5.1"
|
14
|
-
gem 'simplecov', :require => false
|
15
|
-
end
|
3
|
+
# Specify your gem's dependencies in c2dm.gemspec
|
4
|
+
gemspec
|
data/Rakefile
CHANGED
@@ -1,47 +1 @@
|
|
1
|
-
require
|
2
|
-
require 'bundler'
|
3
|
-
begin
|
4
|
-
Bundler.setup(:default, :development)
|
5
|
-
rescue Bundler::BundlerError => e
|
6
|
-
$stderr.puts e.message
|
7
|
-
$stderr.puts "Run `bundle install` to install missing gems"
|
8
|
-
exit e.status_code
|
9
|
-
end
|
10
|
-
require 'rake'
|
11
|
-
|
12
|
-
require 'jeweler'
|
13
|
-
Jeweler::Tasks.new do |gem|
|
14
|
-
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
15
|
-
gem.name = "c2dm"
|
16
|
-
gem.homepage = "http://github.com/amro/c2dm"
|
17
|
-
gem.license = "MIT"
|
18
|
-
gem.summary = %Q{c2dm sends push notifications to Android devices via google c2dm.}
|
19
|
-
gem.description = %Q{c2dm sends push notifications to Android devices via google c2dm.}
|
20
|
-
gem.email = "amromousa@gmail.com"
|
21
|
-
gem.authors = ["Amro Mousa"]
|
22
|
-
# Include your dependencies below. Runtime dependencies are required when using your gem,
|
23
|
-
# and development dependencies are only needed for development (ie running rake tasks, tests, etc)
|
24
|
-
# gem.add_runtime_dependency 'jabber4r', '> 0.1'
|
25
|
-
gem.add_runtime_dependency 'httparty', '> 0.6.0'
|
26
|
-
# gem.add_development_dependency 'rspec', '> 1.2.3'
|
27
|
-
end
|
28
|
-
Jeweler::RubygemsDotOrgTasks.new
|
29
|
-
|
30
|
-
require 'rake/testtask'
|
31
|
-
Rake::TestTask.new(:test) do |test|
|
32
|
-
test.libs << 'lib' << 'test'
|
33
|
-
test.pattern = 'test/**/test_*.rb'
|
34
|
-
test.verbose = true
|
35
|
-
end
|
36
|
-
|
37
|
-
task :default => :test
|
38
|
-
|
39
|
-
require 'rake/rdoctask'
|
40
|
-
Rake::RDocTask.new do |rdoc|
|
41
|
-
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
42
|
-
|
43
|
-
rdoc.rdoc_dir = 'rdoc'
|
44
|
-
rdoc.title = "c2dm #{version}"
|
45
|
-
rdoc.rdoc_files.include('README*')
|
46
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
47
|
-
end
|
1
|
+
require "bundler/gem_tasks"
|
data/c2dm.gemspec
CHANGED
@@ -1,69 +1,23 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
1
|
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
5
3
|
|
6
4
|
Gem::Specification.new do |s|
|
7
|
-
s.name
|
8
|
-
s.version
|
5
|
+
s.name = "c2dm"
|
6
|
+
s.version = "0.2.1"
|
7
|
+
s.authors = ["Amro Mousa"]
|
8
|
+
s.email = ["amromousa@gmail.com"]
|
9
|
+
s.homepage = ""
|
10
|
+
s.summary = %q{sends push notifications to Android devices}
|
11
|
+
s.description = %q{c2dm sends push notifications to Android devices via google c2dm}
|
12
|
+
s.license = "MIT"
|
13
|
+
|
14
|
+
s.rubyforge_project = "c2dm"
|
9
15
|
|
10
|
-
s.
|
11
|
-
s.
|
12
|
-
s.
|
13
|
-
s.description = "c2dm sends push notifications to Android devices via google c2dm."
|
14
|
-
s.email = "amromousa@gmail.com"
|
15
|
-
s.extra_rdoc_files = [
|
16
|
-
"LICENSE.txt",
|
17
|
-
"README.markdown"
|
18
|
-
]
|
19
|
-
s.files = [
|
20
|
-
".document",
|
21
|
-
"Gemfile",
|
22
|
-
"Gemfile.lock",
|
23
|
-
"LICENSE.txt",
|
24
|
-
"README.markdown",
|
25
|
-
"Rakefile",
|
26
|
-
"VERSION",
|
27
|
-
"c2dm.gemspec",
|
28
|
-
"lib/c2dm.rb",
|
29
|
-
"test/helper.rb",
|
30
|
-
"test/test_c2dm.rb"
|
31
|
-
]
|
32
|
-
s.homepage = "http://github.com/amro/c2dm"
|
33
|
-
s.licenses = ["MIT"]
|
16
|
+
s.files = `git ls-files`.split("\n")
|
17
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
18
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
34
19
|
s.require_paths = ["lib"]
|
35
|
-
s.rubygems_version = "1.8.10"
|
36
|
-
s.summary = "c2dm sends push notifications to Android devices via google c2dm."
|
37
|
-
s.test_files = [
|
38
|
-
"test/helper.rb",
|
39
|
-
"test/test_c2dm.rb"
|
40
|
-
]
|
41
20
|
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
46
|
-
s.add_runtime_dependency(%q<httparty>, [">= 0"])
|
47
|
-
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
48
|
-
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
49
|
-
s.add_development_dependency(%q<jeweler>, ["~> 1.5.1"])
|
50
|
-
s.add_development_dependency(%q<simplecov>, [">= 0"])
|
51
|
-
s.add_runtime_dependency(%q<httparty>, ["> 0.6.0"])
|
52
|
-
else
|
53
|
-
s.add_dependency(%q<httparty>, [">= 0"])
|
54
|
-
s.add_dependency(%q<shoulda>, [">= 0"])
|
55
|
-
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
56
|
-
s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
|
57
|
-
s.add_dependency(%q<simplecov>, [">= 0"])
|
58
|
-
s.add_dependency(%q<httparty>, ["> 0.6.0"])
|
59
|
-
end
|
60
|
-
else
|
61
|
-
s.add_dependency(%q<httparty>, [">= 0"])
|
62
|
-
s.add_dependency(%q<shoulda>, [">= 0"])
|
63
|
-
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
64
|
-
s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
|
65
|
-
s.add_dependency(%q<simplecov>, [">= 0"])
|
66
|
-
s.add_dependency(%q<httparty>, ["> 0.6.0"])
|
67
|
-
end
|
21
|
+
s.add_dependency('httparty')
|
22
|
+
s.add_dependency('json')
|
68
23
|
end
|
69
|
-
|
data/lib/c2dm.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: c2dm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-03-14 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httparty
|
16
|
-
requirement: &
|
16
|
+
requirement: &70354937491300 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,82 +21,34 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70354937491300
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
|
-
name:
|
27
|
-
requirement: &
|
26
|
+
name: json
|
27
|
+
requirement: &70354937490660 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '0'
|
33
|
-
type: :development
|
34
|
-
prerelease: false
|
35
|
-
version_requirements: *70329319586360
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
|
-
name: bundler
|
38
|
-
requirement: &70329319585400 !ruby/object:Gem::Requirement
|
39
|
-
none: false
|
40
|
-
requirements:
|
41
|
-
- - ~>
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version: 1.0.0
|
44
|
-
type: :development
|
45
|
-
prerelease: false
|
46
|
-
version_requirements: *70329319585400
|
47
|
-
- !ruby/object:Gem::Dependency
|
48
|
-
name: jeweler
|
49
|
-
requirement: &70329319584520 !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
|
-
requirements:
|
52
|
-
- - ~>
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: 1.5.1
|
55
|
-
type: :development
|
56
|
-
prerelease: false
|
57
|
-
version_requirements: *70329319584520
|
58
|
-
- !ruby/object:Gem::Dependency
|
59
|
-
name: simplecov
|
60
|
-
requirement: &70329319583540 !ruby/object:Gem::Requirement
|
61
|
-
none: false
|
62
|
-
requirements:
|
63
|
-
- - ! '>='
|
64
|
-
- !ruby/object:Gem::Version
|
65
|
-
version: '0'
|
66
|
-
type: :development
|
67
|
-
prerelease: false
|
68
|
-
version_requirements: *70329319583540
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: httparty
|
71
|
-
requirement: &70329319582780 !ruby/object:Gem::Requirement
|
72
|
-
none: false
|
73
|
-
requirements:
|
74
|
-
- - ! '>'
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
version: 0.6.0
|
77
33
|
type: :runtime
|
78
34
|
prerelease: false
|
79
|
-
version_requirements: *
|
80
|
-
description: c2dm sends push notifications to Android devices via google c2dm
|
81
|
-
email:
|
35
|
+
version_requirements: *70354937490660
|
36
|
+
description: c2dm sends push notifications to Android devices via google c2dm
|
37
|
+
email:
|
38
|
+
- amromousa@gmail.com
|
82
39
|
executables: []
|
83
40
|
extensions: []
|
84
|
-
extra_rdoc_files:
|
85
|
-
- LICENSE.txt
|
86
|
-
- README.markdown
|
41
|
+
extra_rdoc_files: []
|
87
42
|
files:
|
88
43
|
- .document
|
44
|
+
- .gitignore
|
89
45
|
- Gemfile
|
90
|
-
- Gemfile.lock
|
91
46
|
- LICENSE.txt
|
92
47
|
- README.markdown
|
93
48
|
- Rakefile
|
94
|
-
- VERSION
|
95
49
|
- c2dm.gemspec
|
96
50
|
- lib/c2dm.rb
|
97
|
-
|
98
|
-
- test/test_c2dm.rb
|
99
|
-
homepage: http://github.com/amro/c2dm
|
51
|
+
homepage: ''
|
100
52
|
licenses:
|
101
53
|
- MIT
|
102
54
|
post_install_message:
|
@@ -109,9 +61,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
109
61
|
- - ! '>='
|
110
62
|
- !ruby/object:Gem::Version
|
111
63
|
version: '0'
|
112
|
-
segments:
|
113
|
-
- 0
|
114
|
-
hash: 21375347209724665
|
115
64
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
116
65
|
none: false
|
117
66
|
requirements:
|
@@ -119,11 +68,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
68
|
- !ruby/object:Gem::Version
|
120
69
|
version: '0'
|
121
70
|
requirements: []
|
122
|
-
rubyforge_project:
|
71
|
+
rubyforge_project: c2dm
|
123
72
|
rubygems_version: 1.8.10
|
124
73
|
signing_key:
|
125
74
|
specification_version: 3
|
126
|
-
summary:
|
127
|
-
test_files:
|
128
|
-
- test/helper.rb
|
129
|
-
- test/test_c2dm.rb
|
75
|
+
summary: sends push notifications to Android devices
|
76
|
+
test_files: []
|
data/Gemfile.lock
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
GEM
|
2
|
-
remote: http://rubygems.org/
|
3
|
-
specs:
|
4
|
-
git (1.2.5)
|
5
|
-
httparty (0.8.1)
|
6
|
-
multi_json
|
7
|
-
multi_xml
|
8
|
-
jeweler (1.5.2)
|
9
|
-
bundler (~> 1.0.0)
|
10
|
-
git (>= 1.2.5)
|
11
|
-
rake
|
12
|
-
multi_json (1.0.4)
|
13
|
-
multi_xml (0.4.1)
|
14
|
-
rake (0.9.2.2)
|
15
|
-
shoulda (2.11.3)
|
16
|
-
simplecov (0.5.4)
|
17
|
-
multi_json (~> 1.0.3)
|
18
|
-
simplecov-html (~> 0.5.3)
|
19
|
-
simplecov-html (0.5.3)
|
20
|
-
|
21
|
-
PLATFORMS
|
22
|
-
ruby
|
23
|
-
|
24
|
-
DEPENDENCIES
|
25
|
-
bundler (~> 1.0.0)
|
26
|
-
httparty
|
27
|
-
jeweler (~> 1.5.1)
|
28
|
-
shoulda
|
29
|
-
simplecov
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0.2.0
|
data/test/helper.rb
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
require 'bundler'
|
3
|
-
begin
|
4
|
-
Bundler.setup(:default, :development)
|
5
|
-
rescue Bundler::BundlerError => e
|
6
|
-
$stderr.puts e.message
|
7
|
-
$stderr.puts "Run `bundle install` to install missing gems"
|
8
|
-
exit e.status_code
|
9
|
-
end
|
10
|
-
require 'test/unit'
|
11
|
-
require 'shoulda'
|
12
|
-
|
13
|
-
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
14
|
-
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
15
|
-
require 'c2dm'
|
16
|
-
|
17
|
-
class Test::Unit::TestCase
|
18
|
-
end
|