rfetion 0.4.8 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.textile CHANGED
@@ -37,10 +37,10 @@ options can be:
37
37
  <code>logger_level</code>
38
38
 
39
39
 
40
- * send schedule sms to friends
40
+ * set schedule sms to friends
41
41
 
42
42
  <pre><code>
43
- Fetion.schedule_sms(options)
43
+ Fetion.set_schedule_sms(options)
44
44
  </code></pre>
45
45
 
46
46
  options can be:
data/Rakefile CHANGED
@@ -1,6 +1,26 @@
1
1
  require 'rubygems'
2
+ require 'rake'
3
+ require 'spec/rake/spectask'
4
+ require 'rake/rdoctask'
2
5
  require 'jeweler'
3
6
 
7
+ desc 'Default: run unit tests.'
8
+ task :default => :spec
9
+
10
+ desc 'Generate documentation for the rfetion plugin.'
11
+ Rake::RDocTask.new(:rdoc) do |rdoc|
12
+ rdoc.rdoc_dir = 'rdoc'
13
+ rdoc.title = 'rfetion'
14
+ rdoc.options << '--line-numbers' << '--inline-source'
15
+ rdoc.rdoc_files.include('README')
16
+ rdoc.rdoc_files.include('lib/**/*.rb')
17
+ end
18
+
19
+ desc "Run all specs in spec directory"
20
+ Spec::Rake::SpecTask.new(:spec) do |t|
21
+ t.spec_files = FileList['spec/**/*_spec.rb']
22
+ end
23
+
4
24
  Jeweler::Tasks.new do |gemspec|
5
25
  gemspec.name = 'rfetion'
6
26
  gemspec.summary = 'rfetion is a ruby gem for China Mobile fetion service that you can send SMS free.'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.8
1
+ 0.5.0
@@ -1,11 +1,11 @@
1
1
  class Contact
2
- attr_reader :uri, :mobile_no, :nickname, :impresa, :nickname
2
+ attr_reader :sid, :uri, :mobile_no, :nickname, :impresa, :nickname
3
3
 
4
- def initialize(uri, attrs)
5
- @uri = uri
6
- @mobile_no = attrs["mobile-no"]
7
- @nickname = attrs["nickname"]
8
- @impresa = attrs["impresa"]
9
- @nickname = attrs["nickname"]
4
+ def initialize(attrs)
5
+ @sid = attrs["sid"]
6
+ @uri = attrs["su"]
7
+ @mobile_no = attrs["m"]
8
+ @nickname = attrs["n"]
9
+ @impresa = attrs["i"]
10
10
  end
11
11
  end