selfiegram 0.0.4 → 0.0.5

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: bf341c8b3b0c555cc54e35f1e538e599820898f2
4
- data.tar.gz: d03fe87ca610eb1ffd3d399b9ffdda3b83aea5f6
3
+ metadata.gz: 02ed9ad119781b638d6f1d5b0f890b26dcb389a4
4
+ data.tar.gz: d383822ec5a2c9f49a08683542897d65a29c9cbf
5
5
  SHA512:
6
- metadata.gz: 4f3307a4e8a7c3917ac53923ccdb98c5dfa20c38d27cc287fcd9358dca0a363ce5e0365eb93b7823164065205aba2b70d9966adf812d6fea9f61a00e6023e448
7
- data.tar.gz: 46c2f793269b8080efd84b12184dc463e2b3299feb21ffe157397579afaf7a59a3c45e3f38357a95cf3aa6d15f17e421badf4dd8c51e0bde0958840d74db7833
6
+ metadata.gz: b18a04c35740ca17abb163f28f7898b5f6d5e1fa9cead875e36e217c0180eb4cdaecff789481c21e99825b358990934035fe1f8e93243ea2ad291e0756e3fe02
7
+ data.tar.gz: 7c260b42ead132a4d6ef991798c399265cd02a995a31d2be7b7cbd6e1ad436050e8da1223cb1b1445cbf9c7e0a3da0c8b27ac7a0a654e10fc9f1a3564e01d83e
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
1
+ 0.0.5
data/lib/selfiegram.rb CHANGED
@@ -13,12 +13,18 @@ class Object
13
13
  end
14
14
 
15
15
  class Selfiegram
16
- include Actionable
17
16
  attr_accessor :action, :user, :magic, :selfiegram_path,
18
17
  :output_path, :background_image_path, :image, :verbose
19
18
 
20
- action :snap
21
- action :add_user
19
+ class << self
20
+ def snap(options={})
21
+ new(options).snap
22
+ end
23
+
24
+ def add_user(options={})
25
+ new(options).add_user
26
+ end
27
+ end
22
28
 
23
29
  def initialize(options={})
24
30
  options.each { |key, value| send("#{key}=", value) }
data/selfiegram.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: selfiegram 0.0.4 ruby lib
5
+ # stub: selfiegram 0.0.5 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "selfiegram"
9
- s.version = "0.0.4"
9
+ s.version = "0.0.5"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
@@ -30,7 +30,6 @@ Gem::Specification.new do |s|
30
30
  "Rakefile",
31
31
  "VERSION",
32
32
  "bin/selfie",
33
- "lib/actionable/actionable.rb",
34
33
  "lib/background_images/downloader.rb",
35
34
  "lib/background_images/finder.rb",
36
35
  "lib/runner/options/options.rb",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selfiegram
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Shollenberger
@@ -141,7 +141,6 @@ files:
141
141
  - Rakefile
142
142
  - VERSION
143
143
  - bin/selfie
144
- - lib/actionable/actionable.rb
145
144
  - lib/background_images/downloader.rb
146
145
  - lib/background_images/finder.rb
147
146
  - lib/runner/options/options.rb
@@ -1,15 +0,0 @@
1
- class Selfiegram
2
- module Actionable
3
- def self.included(base)
4
- base.send(:extend, ClassMethods)
5
- end
6
-
7
- module ClassMethods
8
- def action(name)
9
- define_singleton_method "#{name}" do |options|
10
- new(options).send(name)
11
- end
12
- end
13
- end
14
- end
15
- end