handy_apn 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: cb19442dc04a53bac67cae07ba2d52fbef8ffd0f
4
- data.tar.gz: 344d067ee973b39b894f16aa536ba3c27c462501
2
+ SHA256:
3
+ metadata.gz: c950abd7856d2bdd6984ff6769593f598d9c2c41aab659fd9ef96e44b02aadaa
4
+ data.tar.gz: 9e386d5f3dc6db6e51721f09b76a7579093d148089939e952fb331d07c9575af
5
5
  SHA512:
6
- metadata.gz: 6f89a39b01053e293c6855fc6c016a29d507793ae2c9561bb593e5e522f50120279a0e6c1ecf3a64333497a900cffefb78970ccc32bc2c21e0da43dd73911a23
7
- data.tar.gz: c6202cecd97ad5bdbb7a07048d4854cc47fc50c9f63c348d6d250dca6fb9d0bd35933f9d4c9b752d79357f35cd628143d733bc68ccebae4e2e1e6d5306ebc161
6
+ metadata.gz: 5d64776676e026e05b59828e7f5bf2d705dfc01b1b584db4c8f214d26a425aeacc8e2c53c131880ef9447b4a8fce50a20ed73abb2c98e54583e3b82ac418d38b
7
+ data.tar.gz: d426120b7c1b1dd6c45a1b35d401e7e85bf7e705b9ba3543756b9e092fee31edb1d15f04988241d4caa73428f6764400fc54d2c3fc508021f5e296f5ccfec5e2
data/.ruby-gemset ADDED
@@ -0,0 +1 @@
1
+ handy_apn
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ ruby-2.6.6
data/README.md CHANGED
@@ -90,8 +90,8 @@ $ rake apn:send_message["/Users/blah/apn_certificates/aps_development.pem","blah
90
90
  4. In apple developer portal, To create push notification developer certificate, Click Certificate, you will see this page, click Continue here:![alt tag](https://github.com/sushmasatish/handy_apn/blob/master/docs/AppleInstructionsOnCreatingCSR.png)
91
91
  5. Now upload the CSR created in step 2:![alt tag](https://github.com/sushmasatish/handy_apn/blob/master/docs/generating_certificate.png)
92
92
  6. Once generated, click on download and save the file. The saved file would be named: "aps_development.cer":![alt tag](https://github.com/sushmasatish/handy_apn/blob/master/docs/click_download.png)
93
- 7. Open the downloaded aps_development.cer file by double clicking. This would add the .cer to keychain. Now Select the **private key** and the **certificate** and right click and select ```Export 2 items```:![alt tag](https://github.com/sushmasatish/handy_apn/blob/master/docs/ExportingPrivateKeyAndAPNDevCerTogether.png)
94
- 8. Selecting Export 2 items, will export it as .p12 file:![alt tag](https://github.com/sushmasatish/handy_apn/blob/master/docs/ExportingPrivateKeyDevCerTogether.png)
93
+ 7. Open the downloaded aps_development.cer file by double clicking. This would add the .cer to keychain. Now you should see, the public key, private key and certificate in your Keychain as shown:![alt tag](https://github.com/sushmasatish/handy_apn/blob/master/docs/CerPrivatePublicKeysInKeychain.png)
94
+ 8. Now Select the **private key** and the **certificate** and right click and select ```Export 2 items```:![alt tag](https://github.com/sushmasatish/handy_apn/blob/master/docs/ExportingPrivateKeyDevCerTogether.png)
95
95
  9. Now execute the following ```openssl``` command on the ```AppDemoPrivateKeyDevCerTogether.p12```:
96
96
 
97
97
  ```sh
data/handy_apn.gemspec CHANGED
@@ -18,8 +18,8 @@ Gem::Specification.new do |spec|
18
18
  spec.add_dependency "commander", "~> 4.1"
19
19
  spec.add_dependency "json"
20
20
 
21
- spec.add_development_dependency "bundler", "~> 1.9"
22
- spec.add_development_dependency "rake", "~> 10.0"
21
+ spec.add_development_dependency "bundler", ">= 2.1.0"
22
+ spec.add_development_dependency "rake", ">= 12.3.3"
23
23
  spec.add_development_dependency "rspec"
24
24
 
25
25
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|docs)/}) }
@@ -1,3 +1,3 @@
1
1
  module HandyApn
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: handy_apn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sushma Satish
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-11 00:00:00.000000000 Z
11
+ date: 2021-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: configatron
@@ -70,30 +70,30 @@ dependencies:
70
70
  name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: '1.9'
75
+ version: 2.1.0
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: '1.9'
82
+ version: 2.1.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: '10.0'
89
+ version: 12.3.3
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - "~>"
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
- version: '10.0'
96
+ version: 12.3.3
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rspec
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -119,7 +119,8 @@ extra_rdoc_files: []
119
119
  files:
120
120
  - ".gitignore"
121
121
  - ".rspec"
122
- - ".rvmrc"
122
+ - ".ruby-gemset"
123
+ - ".ruby-version"
123
124
  - ".travis.yml"
124
125
  - Gemfile
125
126
  - README.md
@@ -138,7 +139,7 @@ homepage: https://github.com/sushmasatish/handy_apn
138
139
  licenses:
139
140
  - MIT
140
141
  metadata: {}
141
- post_install_message:
142
+ post_install_message:
142
143
  rdoc_options: []
143
144
  require_paths:
144
145
  - lib
@@ -153,9 +154,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
153
154
  - !ruby/object:Gem::Version
154
155
  version: '0'
155
156
  requirements: []
156
- rubyforge_project:
157
- rubygems_version: 2.2.2
158
- signing_key:
157
+ rubygems_version: 3.0.8
158
+ signing_key:
159
159
  specification_version: 4
160
160
  summary: Provides a handy tool to check your certificate and send apple push notification
161
161
  instantly.
data/.rvmrc DELETED
@@ -1,60 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- # This is an RVM Project .rvmrc file, used to automatically load the ruby
4
- # development environment upon cd'ing into the directory
5
-
6
- # First we specify our desired <ruby>[@<gemset>], the @gemset name is optional,
7
- # Only full ruby name is supported here, for short names use:
8
- # echo "rvm use 2.1.2@handy_apn" > .rvmrc
9
- environment_id="ruby-2.1.2@handy_apn"
10
-
11
- # Uncomment the following lines if you want to verify rvm version per project
12
- # rvmrc_rvm_version="1.26.11 (latest)" # 1.10.1 seems like a safe start
13
- # eval "$(echo ${rvm_version}.${rvmrc_rvm_version} | __rvm_awk -F. '{print "[[ "$1*65536+$2*256+$3" -ge "$4*65536+$5*256+$6" ]]"}' )" || {
14
- # echo "This .rvmrc file requires at least RVM ${rvmrc_rvm_version}, aborting loading."
15
- # return 1
16
- # }
17
-
18
- # First we attempt to load the desired environment directly from the environment
19
- # file. This is very fast and efficient compared to running through the entire
20
- # CLI and selector. If you want feedback on which environment was used then
21
- # insert the word 'use' after --create as this triggers verbose mode.
22
- if [[ -d "${rvm_path:-$HOME/.rvm}/environments"
23
- && -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]]
24
- then
25
- \. "${rvm_path:-$HOME/.rvm}/environments/$environment_id"
26
- for __hook in "${rvm_path:-$HOME/.rvm}/hooks/after_use"*
27
- do
28
- if [[ -f "${__hook}" && -x "${__hook}" && -s "${__hook}" ]]
29
- then \. "${__hook}" || true
30
- fi
31
- done
32
- unset __hook
33
- if (( ${rvm_use_flag:=1} >= 2 )) # display only when forced
34
- then
35
- if [[ $- == *i* ]] # check for interactive shells
36
- then printf "%b" "Using: $(tput setaf 2 2>/dev/null)$GEM_HOME$(tput sgr0 2>/dev/null)\n" # show the user the ruby and gemset they are using in green
37
- else printf "%b" "Using: $GEM_HOME\n" # don't use colors in non-interactive shells
38
- fi
39
- fi
40
- else
41
- # If the environment file has not yet been created, use the RVM CLI to select.
42
- rvm --create "$environment_id" || {
43
- echo "Failed to create RVM environment '${environment_id}'."
44
- return 1
45
- }
46
- fi
47
-
48
- # If you use bundler, this might be useful to you:
49
- # if [[ -s Gemfile ]] && {
50
- # ! builtin command -v bundle >/dev/null ||
51
- # builtin command -v bundle | GREP_OPTIONS="" \command \grep $rvm_path/bin/bundle >/dev/null
52
- # }
53
- # then
54
- # printf "%b" "The rubygem 'bundler' is not installed. Installing it now.\n"
55
- # gem install bundler
56
- # fi
57
- # if [[ -s Gemfile ]] && builtin command -v bundle >/dev/null
58
- # then
59
- # bundle install | GREP_OPTIONS="" \command \grep -vE '^Using|Your bundle is complete'
60
- # fi