ceedling 0.11.1 → 0.11.2

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/Rakefile CHANGED
@@ -4,6 +4,20 @@ require "./lib/ceedling"
4
4
  require "fileutils"
5
5
  require "erb"
6
6
 
7
+ def update_revisions
8
+ puts "Updating version info..."
9
+ versions = {}
10
+ full_version_info = nil
11
+ Dir.chdir(Ceedling::NEW_PROJECT_DIR) { full_version_info = `rake version` }
12
+ puts full_version_info
13
+ full_version_info.each_line do |line|
14
+ line = line.split("::")
15
+ versions[line.first.strip.upcase] = line.last.strip
16
+ end
17
+ result = ERB.new(File.read("lib/ceedling/version.rb.erb")).result(binding)
18
+ File.open("lib/ceedling/version.rb", "wb+") { |f| f.puts result }
19
+ end
20
+
7
21
  desc "update all the tools from sourceforge and update version info"
8
22
  task :update_tools do
9
23
 
@@ -64,17 +78,10 @@ task :update_tools do
64
78
  FileUtils.cp_r "temp/#{path[:src]}", "#{dest}"
65
79
  end
66
80
  rm_rf "temp"
81
+ update_revisions
82
+ end
67
83
 
68
- puts "\nUpdating version info..."
69
- versions = {}
70
- full_version_info = nil
71
- Dir.chdir(Ceedling::NEW_PROJECT_DIR) { full_version_info = `rake version` }
72
- puts full_version_info
73
- full_version_info.each_line do |line|
74
- line = line.split("::")
75
- versions[line.first.strip.upcase] = line.last.strip
76
- end
77
- result = ERB.new(File.read("lib/ceedling/version.rb.erb")).result(binding)
78
- File.open("lib/ceedling/version.rb", "wb+") { |f| f.puts result }
79
-
80
- end
84
+ desc "Update versions"
85
+ task :update_revs do
86
+ update_revisions
87
+ end
data/bin/ceedling CHANGED
@@ -46,8 +46,7 @@ class CeedlingTasks < Thor
46
46
  end
47
47
 
48
48
  desc "example PROJ_NAME [DEST]", "create specified example project (in DEST, if specified)"
49
- def example(proj_name, dest=".")
50
- dest = "." if dest.nil?
49
+ def example(proj_name, dest="temp_sensor")
51
50
  directory Ceedling::NEW_PROJECT_DIR, dest
52
51
  remove_file "#{dest}/project.yml"
53
52
  remove_file "#{dest}/rakefile.rb"
@@ -2,7 +2,7 @@
2
2
  module Ceedling
3
3
  module Version
4
4
  # @private
5
- GEM = "0.11.1"
5
+ GEM = "0.11.2"
6
6
 
7
7
  # @private
8
8
  CEEDLING = "0.10.226"
@@ -2,7 +2,7 @@
2
2
  module Ceedling
3
3
  module Version
4
4
  # @private
5
- GEM = "0.11.1"
5
+ GEM = "0.11.2"
6
6
 
7
7
  # @private
8
8
  CEEDLING = "<%= versions["CEEDLING"] %>"
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 11
8
- - 1
9
- version: 0.11.1
8
+ - 2
9
+ version: 0.11.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Mike Karlesky, Mark VanderVoord