mizuki 0.0.1.3 → 0.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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 58acb19470bfde4ea8014793da9abf0dc54ab8b2
4
+ data.tar.gz: 311e0a331327c56c0d8ed28ff28da92388230ebc
5
+ SHA512:
6
+ metadata.gz: acfa46a77ae047048d8068d5d9d20afd2a71d3c6996109a462028b47dcbfa8ac00b4cc98cd03e7139478eaeb64ab2a3ee39f93315ade15284ab6198cf25a142a
7
+ data.tar.gz: 300d8226e7ba3ef4b23eacc404051c96a4571d5d1dddcca4b58cf671d60fa2e992803bc109962606fd674fe1c7848861c09860f1bc8e9b47e6379e04b1049a3a
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # Mizuki
2
2
 
3
- TODO: Write a gem description
3
+ Searches a certain string from resent Facebook messages.
4
+ Note that token needs extended permission "read_mailbox".
4
5
 
5
6
  ## Installation
6
7
 
@@ -18,12 +19,12 @@ Or install it yourself as:
18
19
 
19
20
  ## Usage
20
21
 
21
- TODO: Write usage instructions here
22
+ Mizuki.message_sent?(STRING_TO_SEARCH,TOKEN_WITH_READ_MAILBOX)
22
23
 
23
- ## Contributing
24
+ Returns true when STRING_TO_SEARCH is included to recent 5 message threads, returns false if not.
25
+ Note that it throws FbGraph::SOME_KIND error when Graph API error occures.
24
26
 
25
- 1. Fork it
26
- 2. Create your feature branch (`git checkout -b my-new-feature`)
27
- 3. Commit your changes (`git commit -am 'Added some feature'`)
28
- 4. Push to the branch (`git push origin my-new-feature`)
29
- 5. Create new Pull Request
27
+
28
+
29
+ ## Who is Mizuki?
30
+ New Romantic!
@@ -18,7 +18,7 @@ module Mizuki
18
18
  end
19
19
  }
20
20
 
21
- message_logs.any?{|ml| ml.include?(string)}
21
+ message_logs.compact.any?{|ml| ml.include?(string)}
22
22
  end
23
23
  end
24
24
  end
@@ -1,3 +1,3 @@
1
1
  module Mizuki
2
- VERSION = "0.0.1.3"
2
+ VERSION = "0.0.1.4"
3
3
  end
@@ -2,7 +2,7 @@
2
2
  require File.expand_path(File.join('./', 'spec_helper'), File.dirname(__FILE__))
3
3
 
4
4
  describe Object do
5
- ACCESS_TOKEN = "to_be_updated"
5
+ ACCESS_TOKEN = "CAACEdEose0cBAE5GZAhaRQZA5HZASnGNDptQnpd7jd1qDfA97v6y9ZCWI49GZBN82SKaQRaQGuobZBhpZCszwKROPHyA2gcnpiZAoxlw6MZBOzHDXszH3VMHjlpb4f63ZC7IBQO7ZCBdZBFftWTHQgSe8Go0otZAZCAUtSxJ6tgf5W79tIenTeoTdOpbDgeKuuToAKmgQZD"
6
6
  it "message_sent? test success" do
7
7
  Mizuki.message_sent?("qcyudjDc",ACCESS_TOKEN).should == true
8
8
  end
metadata CHANGED
@@ -1,30 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mizuki
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.3
5
- prerelease:
4
+ version: 0.0.1.4
6
5
  platform: ruby
7
6
  authors:
8
7
  - i7a16k
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-03-31 00:00:00.000000000 Z
11
+ date: 2014-04-03 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: fb_graph
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  description: FB message error checker
@@ -46,27 +43,26 @@ files:
46
43
  - spec/spec_helper.rb
47
44
  homepage: https://github.com/i7a/mizuki
48
45
  licenses: []
46
+ metadata: {}
49
47
  post_install_message:
50
48
  rdoc_options: []
51
49
  require_paths:
52
50
  - lib
53
51
  required_ruby_version: !ruby/object:Gem::Requirement
54
- none: false
55
52
  requirements:
56
- - - ! '>='
53
+ - - '>='
57
54
  - !ruby/object:Gem::Version
58
55
  version: '0'
59
56
  required_rubygems_version: !ruby/object:Gem::Requirement
60
- none: false
61
57
  requirements:
62
- - - ! '>='
58
+ - - '>='
63
59
  - !ruby/object:Gem::Version
64
60
  version: '0'
65
61
  requirements: []
66
62
  rubyforge_project:
67
- rubygems_version: 1.8.25
63
+ rubygems_version: 2.0.3
68
64
  signing_key:
69
- specification_version: 3
65
+ specification_version: 4
70
66
  summary: checks message sent status via open graph API
71
67
  test_files:
72
68
  - spec/mizuki_spec.rb