jister 0.1 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.md +14 -10
  2. data/bin/jister +14 -0
  3. data/lib/version.rb +3 -0
  4. metadata +8 -7
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # jister
2
2
 
3
- Easily gist a whole project.
3
+ Easily gist an entire project.
4
4
 
5
5
  ## Installing
6
6
 
@@ -12,11 +12,17 @@ Easily gist a whole project.
12
12
 
13
13
  ## Commands
14
14
 
15
- jister push
15
+ This is dead simple. On your project's directory, run:
16
16
 
17
- Will push a
17
+ jister push
18
+
19
+ or:
18
20
 
19
- jister pull GIST-ID
21
+ jister pull GIST-ID
22
+
23
+ To list the available recipes do:
24
+
25
+ jister recipes
20
26
 
21
27
  ## Configuration
22
28
 
@@ -34,12 +40,10 @@ The files that will be saved to the gist. Defaults to ```['**/*.rb', '**/*.haml'
34
40
 
35
41
  ## Using it as a rake task
36
42
 
37
- Copy lib/jister.rake into your app. Make sure you have "jist" installed first.
38
-
39
- ## Creating a new Padrino project from a gist
43
+ Copy lib/jister.rake into your app. Make sure you have "jist" installed first.
40
44
 
41
- padrino g project some_project; cd some_project; jister pull GIST-ID
45
+ ## Using recipes to rapidly push an entire project
42
46
 
43
- or
47
+ To an entire Padrino project:
44
48
 
45
- padrino g project some_project; cd some_project; curl -L http://jister.uxtemple.com | `which bash` -s GIST-ID
49
+ jister push --recipe padrino
data/bin/jister CHANGED
@@ -7,8 +7,16 @@ load File.expand_path('../../lib/jister.rake', __FILE__)
7
7
  class Jister < Thor
8
8
  include Thor::RakeCompat
9
9
 
10
+ RECIPES = {
11
+ :padrino => ".components,Gemfile,Rakefile,app/**/*.*,config/*.rb,config.ru,lib/**/*.*,public/**/*.js,public/**/*.css"
12
+ }
13
+
10
14
  desc 'push', "Push the current project to a Gist"
15
+ method_options :recipe => :string
11
16
  def push
17
+ recipe = options[:recipe]
18
+ ENV['JISTER_FILES'] = RECIPES[recipe.to_sym] if (recipe && RECIPES[recipe.to_sym])
19
+
12
20
  Rake::Task['jister:push'].execute
13
21
  end
14
22
 
@@ -16,6 +24,12 @@ class Jister < Thor
16
24
  def pull(id)
17
25
  Rake::Task['jister:pull'].invoke(id)
18
26
  end
27
+
28
+ desc 'recipes', 'Show the list of available recipes'
29
+ def recipes
30
+ puts 'List of available recipes:'
31
+ puts " #{RECIPES.keys.join("\n")}"
32
+ end
19
33
  end
20
34
 
21
35
  Jister.start
@@ -0,0 +1,3 @@
1
+ class Jister
2
+ VERSION = '0.1.1'
3
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jister
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2013-01-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
16
- requirement: &70335343932840 !ruby/object:Gem::Requirement
16
+ requirement: &70168264357380 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70335343932840
24
+ version_requirements: *70168264357380
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: thor
27
- requirement: &70335343932000 !ruby/object:Gem::Requirement
27
+ requirement: &70168264356780 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70335343932000
35
+ version_requirements: *70168264356780
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: jist
38
- requirement: &70335343931340 !ruby/object:Gem::Requirement
38
+ requirement: &70168264356000 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70335343931340
46
+ version_requirements: *70168264356000
47
47
  description: Use jister to push and pull an entire project from Github's gists! It's
48
48
  great for sharing a project while debugging an issue...
49
49
  email: dario@uxtemple.com
@@ -54,6 +54,7 @@ extra_rdoc_files: []
54
54
  files:
55
55
  - bin/jister
56
56
  - lib/jister.rake
57
+ - lib/version.rb
57
58
  - README.md
58
59
  - LICENSE
59
60
  homepage: http://github.com/dariocravero/jister