twittermotion 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,7 +1,4 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem 'bubble-wrap', ">=1.1.2"
4
- gem 'geomotion'
5
-
6
3
  # Specify your gem's dependencies in Routable.gemspec
7
4
  gemspec
data/README.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  ## Usage
4
4
 
5
+ See Availability:
6
+
7
+ ```ruby
8
+ if Twitter::Composer.available?
9
+ # Add tweet button etc
10
+ end
11
+ ```
12
+
5
13
  Sign in:
6
14
 
7
15
  ```ruby
@@ -61,4 +69,4 @@ end
61
69
 
62
70
  ## Pull Requests
63
71
 
64
- It would be really cool if this was a fully-compatible Twitter API wrapper, so add whatever functionality you think helps!
72
+ It would be really cool if this was a fully-compatible Twitter API wrapper, so add whatever functionality you think helps!
data/Rakefile CHANGED
@@ -5,6 +5,8 @@ require "bundler/gem_tasks"
5
5
  $:.unshift("./lib/")
6
6
  require './lib/twittermotion'
7
7
 
8
+ require 'geomotion'
9
+
8
10
  Motion::Project::App.setup do |app|
9
11
  # Use `rake config' to see complete project settings.
10
12
  app.name = 'TwitterMotion'
@@ -5,7 +5,6 @@ unless defined?(Motion::Project::Config)
5
5
  end
6
6
 
7
7
  require 'bubble-wrap'
8
- require 'geomotion'
9
8
 
10
9
  Motion::Project::App.setup do |app|
11
10
  Dir.glob(File.join(File.dirname(__FILE__), 'twittermotion/*.rb')).each do |file|
@@ -16,6 +16,11 @@ module Twitter
16
16
  TWTweetComposeViewController.canSendTweet
17
17
  end
18
18
 
19
+ def self.compose(options = {}, &block)
20
+ @composer = Composer.new
21
+ @composer.compose(options, &block)
22
+ end
23
+
19
24
  attr_accessor :compose_controller
20
25
  attr_accessor :callback
21
26
  attr_accessor :error, :result
@@ -1,3 +1,3 @@
1
1
  module Twitter
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twittermotion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-05 00:00:00.000000000 Z
12
+ date: 2013-04-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bubble-wrap