gitpartyguest 0.0.5 → 0.0.6

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,11 @@
1
+ #Synch Increment is a way to indicate how often a rollback point will be set in git.
2
+ #The default is minutes which means a new clone will be
3
+ #created if the previous synch was longer than one minute ago.
4
+ # the other increments are:
5
+ # 'second'
6
+ # 'minute'
7
+ # 'hour'
8
+ # 'day'
9
+ ::SYNCHINC = 'minute'
10
+
11
+ ::REPOSERVER = 'git@github.com:sfweb/SFBlogSite.git'
data/config/routes.rb ADDED
@@ -0,0 +1,5 @@
1
+ GitPartyGuest::Application.routes.draw do
2
+ resources :update, :only => :index
3
+ end
4
+
5
+
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  require File.expand_path('../lib/gitpartyguest/version', __FILE__)
3
- require File.expand_path('../config/initializers/repo_init', __FILE__)
4
3
 
4
+ require 'rake'
5
5
 
6
6
  Gem::Specification.new do |gem|
7
7
  gem.authors = ["Sf-ApiUser"]
@@ -10,10 +10,10 @@ Gem::Specification.new do |gem|
10
10
  gem.summary = %q{gonna start out small to make a gem}
11
11
  gem.homepage = ""
12
12
 
13
- gem.files = `git ls-files`.split($\)
13
+ gem.files = `git ls-files`.split($\) + Dir["config/*"] + Dir["lib/generators/*"]
14
14
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
15
15
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
16
16
  gem.name = "gitpartyguest"
17
- gem.require_paths = ["lib/**/*","config/**/*"]
17
+ gem.require_paths = ["lib"]
18
18
  gem.version = Gitpartyguest::VERSION
19
19
  end
@@ -0,0 +1,8 @@
1
+ Description:
2
+ Explain the generator
3
+
4
+ Example:
5
+ rails generate initializer
6
+
7
+ This will create:
8
+ what/will/it/create
@@ -0,0 +1,11 @@
1
+ class Gitpartyguest::InitializerGenerator < Rails::Generators::Base
2
+ source_root File.expand_path('../templates', __FILE__)
3
+
4
+ desc "Generates routes for updating site."
5
+
6
+ def initialize
7
+ copy_file "repo_init.rb", "config/initializers/repo_init.rb" '
8
+ route "resources :update, :only => :index"'
9
+ end
10
+
11
+ end
@@ -0,0 +1,11 @@
1
+ #Synch Increment is a way to indicate how often a rollback point will be set in git.
2
+ #The default is minutes which means a new clone will be
3
+ #created if the previous synch was longer than one minute ago.
4
+ # the other increments are:
5
+ # 'second'
6
+ # 'minute'
7
+ # 'hour'
8
+ # 'day'
9
+ ::SYNCHINC = 'minute'
10
+
11
+ ::REPOSERVER = 'git@github.com:sfweb/SFBlogSite.git'
@@ -1,3 +1,3 @@
1
1
  module Gitpartyguest
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitpartyguest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -23,7 +23,12 @@ files:
23
23
  - LICENSE
24
24
  - README.md
25
25
  - Rakefile
26
+ - config/initializers/repo_init.rb
27
+ - config/routes.rb
26
28
  - gitpartyguest.gemspec
29
+ - lib/generators/gitpartyguest/initializer/USAGE
30
+ - lib/generators/gitpartyguest/initializer/initializer_generator.rb
31
+ - lib/generators/gitpartyguest/initializer/templates/repo_init.rb
27
32
  - lib/gitpartyguest.rb
28
33
  - lib/gitpartyguest/version.rb
29
34
  homepage: ''
@@ -31,8 +36,7 @@ licenses: []
31
36
  post_install_message:
32
37
  rdoc_options: []
33
38
  require_paths:
34
- - lib/**/*
35
- - config/**/*
39
+ - lib
36
40
  required_ruby_version: !ruby/object:Gem::Requirement
37
41
  none: false
38
42
  requirements: