bonethug 0.0.54.16 → 0.0.54.17

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.
data/TODO.txt ADDED
@@ -0,0 +1,3 @@
1
+ - Create front end skeleton
2
+ - Need to have project specific cnf.yml files
3
+ - Local sync for assets
data/bin/thug ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ root_path = File.expand_path(File.dirname(__FILE__)) + '/..'
4
+
5
+ require 'rubygems' unless Object.const_defined?(:Gem)
6
+ require root_path +'/lib/bonethug'
7
+
8
+ Bonethug::CLI.handle
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Bonethug
3
- VERSION = "0.0.54.16"
4
- BUILD_DATE = "2013-10-16 09:12:06 +1300"
3
+ VERSION = "0.0.54.17"
4
+ BUILD_DATE = "2013-10-16 11:52:54 +1300"
5
5
  end
6
6
 
@@ -0,0 +1,75 @@
1
+ require File.expand_path(File.dirname(__FILE__) + "/../bonethug")
2
+
3
+ namespace :bonethug do
4
+
5
+ desc "build the gem + increment build num if pkg exists for v" + Bonethug::VERSION
6
+ task :build do
7
+
8
+ # handle paths
9
+ ver_path = File.expand_path File.dirname(__FILE__) + '/../bonethug/version.rb'
10
+ pkg_path = File.expand_path File.dirname(__FILE__) + '/../../pkg/bonethug-' + Bonethug::VERSION + '.gem'
11
+
12
+ # handle version
13
+ if File.exists? pkg_path
14
+
15
+ version = Bonethug::VERSION.split('.')
16
+ version[version.length-1] = (version.last.to_i + 1).to_s
17
+ version = version.join('.')
18
+
19
+ Bonethug::update_version version
20
+
21
+ puts "Building version " + Bonethug::VERSION + '...'
22
+
23
+ end
24
+
25
+ # generate content for version file
26
+ content = '
27
+ module Bonethug
28
+ VERSION = "' + Bonethug::VERSION + '"
29
+ BUILD_DATE = "' + Time.now.to_s + '"
30
+ end
31
+ '
32
+
33
+ # write data
34
+ File.open(ver_path,'w') do |file|
35
+ file.puts content
36
+ end
37
+
38
+ # invoke the build script
39
+ Rake::Task["build"].invoke
40
+
41
+ end
42
+
43
+ desc "pushes v" + Bonethug::VERSION + " (runs bonethug:build if no pkg exists for v" + Bonethug::VERSION + " )"
44
+ task :push do
45
+
46
+ # handle path
47
+ path = File.expand_path File.dirname(__FILE__) + '/../../pkg/bonethug-' + Bonethug::VERSION + '.gem'
48
+
49
+ # check if there's a build with the current version
50
+ unless File.exists? path
51
+ Rake::Task["bonethug:build"].invoke
52
+ end
53
+
54
+ # push the current version
55
+ # we redefine the path because the version constant may have changed
56
+ # -> the reason being that the parent build script uses that constant to name the gem package
57
+ exec 'gem push ' + 'pkg/bonethug-' + Bonethug::VERSION + '.gem'
58
+
59
+ end
60
+
61
+ desc "runs bonethug:build then bonethug:push"
62
+ task :build_and_push do
63
+
64
+ # invoke the build script
65
+ Rake::Task["bonethug:build"].invoke
66
+ Rake::Task["bonethug:push"].invoke
67
+
68
+ end
69
+
70
+ desc "alias for build + push the gem"
71
+ task :bp do
72
+ Rake::Task["bonethug:build_and_push"].invoke
73
+ end
74
+
75
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bonethug
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.54.16
4
+ version: 0.0.54.17
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -310,6 +310,7 @@ email:
310
310
  - breaks.nz@gmail.com
311
311
  executables:
312
312
  - bonethug
313
+ - thug
313
314
  extensions: []
314
315
  extra_rdoc_files: []
315
316
  files:
@@ -319,7 +320,9 @@ files:
319
320
  - LICENSE.txt
320
321
  - README.md
321
322
  - Rakefile
323
+ - TODO.txt
322
324
  - bin/bonethug
325
+ - bin/thug
323
326
  - bonethug.gemspec
324
327
  - config/backup.rb
325
328
  - config/cnf.yml
@@ -333,6 +336,7 @@ files:
333
336
  - lib/bonethug/utils.rb
334
337
  - lib/bonethug/version.rb
335
338
  - lib/bonethug/watcher.rb
339
+ - lib/tasks/bonethug.rake
336
340
  - scripts/ubuntu_setup.sh
337
341
  - skel/base/.gitignore
338
342
  - skel/base/Gemfile