imessage 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 834fd3fcec66c49f18ae7b6a875759a7eb555671
4
- data.tar.gz: cebbf8e85d8a4b7ad39d8d125a19c589e38b3ebe
3
+ metadata.gz: f6cf5426042fec1c49faecd4ea46b6404ef29349
4
+ data.tar.gz: eb55547a8b3358406170c98af0d438555d6dd383
5
5
  SHA512:
6
- metadata.gz: 57a1a6c95617ceedc779847ab0c46808b0f1e5c58de35444b57187c05ad6b4078e9527f1f580a338ffe787d87c38f929e3965354afe4811331a3f949ef936c56
7
- data.tar.gz: 3e28e72351d44df1c0801c7ee0202ff323dde8053db581b32cbd9b114e2b4c848b69b6cc30c2b08b55df2c9f0f7af675a1f6222a2f2957436e8414781c9f9200
6
+ metadata.gz: 32043fc2f745498153959bcd28557555cb50bd59c1831835b860543f56c4876e9a311723cde19b0bb652186220b6372d7b44bf30006c82564a0fb3baa2bcf2fe
7
+ data.tar.gz: 4e74da22f25c00703c45005a6c2c00798890713ebb644a411664ebdb44c451e18572187bc9122c87564681e4cb794e7f3b3e518675a8c0f8b25c21015ee10329
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## [v0.0.2](https://github.com/linjunpop/imessage/tree/v0.0.2)
6
+
7
+ * Keep ruby 1.9 compatibility [@otzy007](https://github.com/otzy007) (https://github.com/linjunpop/imessage/pull/1)
8
+
5
9
  ## [v0.0.1](https://github.com/linjunpop/imessage/tree/v0.0.1)
6
10
 
7
11
  * Implement send iMessage.
data/README.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  Command line tool to send iMessage.
4
4
 
5
+ [![Build Status](https://travis-ci.org/linjunpop/imessage.png?branch=master)](https://travis-ci.org/linjunpop/imessage)
6
+ [![Gem Version](https://badge.fury.io/rb/imessage.png)](http://badge.fury.io/rb/imessage)
7
+ [![Code Climate](https://codeclimate.com/github/linjunpop/imessage.png)](https://codeclimate.com/github/linjunpop/imessage)
8
+
9
+
5
10
  ## Installation
6
11
 
7
12
  Add this line to your application's Gemfile:
@@ -1,9 +1,9 @@
1
1
  module Imessage
2
2
  class Sender
3
- def self.send(message:'', contacts: [])
4
- contacts.each do |contact|
3
+ def self.send(options = {message:'', contacts: []})
4
+ options[:contacts].each do |contact|
5
5
  apple_script_file = File.join(File.dirname(File.expand_path(__FILE__)), 'scripts/send_imessage.applescript')
6
- `osascript #{apple_script_file} '#{contact}' '#{message}'`
6
+ `osascript #{apple_script_file} '#{contact}' '#{options[:message]}'`
7
7
  end
8
8
  end
9
9
  end
@@ -1,3 +1,3 @@
1
1
  module Imessage
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,69 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imessage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jun Lin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-13 00:00:00.000000000 Z
11
+ date: 2014-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.3'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '2.14'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '2.14'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: gli
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: 2.8.1
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: 2.8.1
69
69
  description: Command line tool to send iMessage.
@@ -74,9 +74,9 @@ executables:
74
74
  extensions: []
75
75
  extra_rdoc_files: []
76
76
  files:
77
- - .gitignore
78
- - .rspec
79
- - .travis.yml
77
+ - ".gitignore"
78
+ - ".rspec"
79
+ - ".travis.yml"
80
80
  - CHANGELOG.md
81
81
  - Gemfile
82
82
  - LICENSE.txt
@@ -99,20 +99,19 @@ require_paths:
99
99
  - lib
100
100
  required_ruby_version: !ruby/object:Gem::Requirement
101
101
  requirements:
102
- - - '>='
102
+ - - ">="
103
103
  - !ruby/object:Gem::Version
104
104
  version: '0'
105
105
  required_rubygems_version: !ruby/object:Gem::Requirement
106
106
  requirements:
107
- - - '>='
107
+ - - ">="
108
108
  - !ruby/object:Gem::Version
109
109
  version: '0'
110
110
  requirements: []
111
111
  rubyforge_project:
112
- rubygems_version: 2.1.10
112
+ rubygems_version: 2.2.2
113
113
  signing_key:
114
114
  specification_version: 4
115
115
  summary: Command line tool to send iMessage.
116
116
  test_files:
117
117
  - spec/spec_helper.rb
118
- has_rdoc: