boards 0.1.1.4 → 0.1.1.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
  SHA256:
3
- metadata.gz: 45100170618fd8f6b9539368beb8b73f0076dc7557c435154a90f386e906685c
4
- data.tar.gz: 8279751fa6f7906e7c5cf47211a58499692a9db0e794bb58787b2b748395cf92
3
+ metadata.gz: ccfa6bc0e299db37e0a1b7a3f284ded998da16c2605c9349ae811759142fb3d9
4
+ data.tar.gz: f9fe563e2519f81b5935984cdcc4cee7c664f99632beb4ffd6b0ca902dcc7b8c
5
5
  SHA512:
6
- metadata.gz: d5203c1cb9597f8188dd58a3f64e953b07fae889ba8fdc0d7dc4df72b08994eea4f0390cbac7dad98c3571301b8a5fa17ac1ff48dc9ac324744555cce926fea3
7
- data.tar.gz: 51a4f69c9d98916699431bf7499db399eeaf7b5c90dfb8fc172627eaa601088e4f9f70ea257132aebae0860da0b2fb8b2798db002541059780ffdd43eaa3fc0d
6
+ metadata.gz: c51633d9fdb418766d4922e88f11a99355a30e30a372d92d6ebb07ae49bd23bb708dbbf759cb5a60b5853e1e5f8050636055b00c42eff66f6074f41d91eae268
7
+ data.tar.gz: da24cc91b362c9d88887639040b41533f6a296e8abc46eb2098a3732607c4777be3865f637dc8e6a22d042d5c242e1139e6f968df9aaa255195113064d99f9e8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- boards (0.1.1.3)
4
+ boards (0.1.1.5)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/boards.gemspec CHANGED
@@ -1,5 +1,6 @@
1
1
  lib = File.expand_path("lib", __dir__)
2
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require "boards/repo"
3
4
  require "boards/version"
4
5
 
5
6
  Gem::Specification.new do |spec|
@@ -10,14 +11,14 @@ Gem::Specification.new do |spec|
10
11
 
11
12
  spec.summary = %q{To facilitate remote programming of Raspberry Pis.}
12
13
  spec.description = %q{A DSL and toolkit that allows programmers to specify setup of Raspberry Pis remotely.}
13
- spec.homepage = "https://github.com/osullii/colony"
14
+ spec.homepage = "https://github.com/#{Boards::REPO}"
14
15
  spec.license = "MIT"
15
16
 
16
17
  # spec.metadata["allowed_push_host"] = "https://rubygems.org"
17
18
 
18
19
  spec.metadata["homepage_uri"] = spec.homepage
19
- spec.metadata["source_code_uri"] = "https://github.com/osullii/colony"
20
- spec.metadata["changelog_uri"] = "https://github.com/osullii/colony"
20
+ spec.metadata["source_code_uri"] = "https://github.com/#{Boards::REPO}"
21
+ spec.metadata["changelog_uri"] = "https://github.com/#{Boards::REPO}"
21
22
 
22
23
  # Specify which files should be added to the gem when it is released.
23
24
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
@@ -20,7 +20,25 @@ module Boards
20
20
  dir_name = name.downcase
21
21
  file_name = 'setup.rb'
22
22
  unless File.exists?("#{dir_name}/#{file_name}")
23
- File.open("#{dir_name}/#{file_name}", "w") {|f| f.write "# I am a setup file."}
23
+ File.open("#{dir_name}/#{file_name}", "w") do |f|
24
+ f.write "# I am a setup file."
25
+ end
26
+ say "create \t#{dir_name}/#{file_name}", :green
27
+ else
28
+ say "file \t#{dir_name}/#{file_name} already exists", :blue
29
+ end
30
+ end
31
+
32
+ def create_boards_rb
33
+ dir_name = name.downcase
34
+ file_name = 'boards.rb'
35
+ unless File.exists?("#{dir_name}/#{file_name}")
36
+ File.open("#{dir_name}/#{file_name}", "w") do |f|
37
+ f.write "# Define the setup of your different boards here.\n"
38
+ f.write "# For more information on the DSL that can be put in this file got to <boards wiki uri>.\n"
39
+ f.write "# TODO: Define DSL.\n"
40
+ f.write "# TODO: Update boards wiki.\n"
41
+ end
24
42
  say "create \t#{dir_name}/#{file_name}", :green
25
43
  else
26
44
  say "file \t#{dir_name}/#{file_name} already exists", :blue
@@ -35,7 +53,7 @@ module Boards
35
53
  f.write "source 'https://rubygems.org'\n"
36
54
  f.write 'git_source(:github) { |repo| "https://github.com/#{repo}.git" }'
37
55
  f.write "\n\n"
38
- f.write "# Bundle edge Boards instead: gem 'boards', github: 'osullii/boards'\n"
56
+ f.write "# Bundle edge Boards instead: gem 'boards', github: '#{Boards::REPO}'\n"
39
57
  f.write "gem 'boards', '#{Boards::VERSION}'"
40
58
  end
41
59
  say "create \t#{dir_name}/#{file_name}", :green
@@ -0,0 +1,3 @@
1
+ module Boards
2
+ REPO = "osullii/boards"
3
+ end
@@ -1,3 +1,3 @@
1
1
  module Boards
2
- VERSION = "0.1.1.4"
2
+ VERSION = "0.1.1.5"
3
3
  end
data/lib/boards.rb CHANGED
@@ -1,8 +1,9 @@
1
+ require "boards/repo"
1
2
  require "boards/version"
2
3
  require "boards/cli"
3
4
  require "boards/new_project"
4
5
 
5
6
  module Boards
6
7
  class Error < StandardError; end
7
- # Your code goes here...
8
+
8
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boards
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1.4
4
+ version: 0.1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Irial O'Sullivan
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-06-30 00:00:00.000000000 Z
11
+ date: 2019-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -92,14 +92,15 @@ files:
92
92
  - lib/boards.rb
93
93
  - lib/boards/cli.rb
94
94
  - lib/boards/new_project.rb
95
+ - lib/boards/repo.rb
95
96
  - lib/boards/version.rb
96
- homepage: https://github.com/osullii/colony
97
+ homepage: https://github.com/osullii/boards
97
98
  licenses:
98
99
  - MIT
99
100
  metadata:
100
- homepage_uri: https://github.com/osullii/colony
101
- source_code_uri: https://github.com/osullii/colony
102
- changelog_uri: https://github.com/osullii/colony
101
+ homepage_uri: https://github.com/osullii/boards
102
+ source_code_uri: https://github.com/osullii/boards
103
+ changelog_uri: https://github.com/osullii/boards
103
104
  post_install_message:
104
105
  rdoc_options: []
105
106
  require_paths: