boards 0.1.1.4 → 0.1.1.5
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/boards.gemspec +4 -3
- data/lib/boards/new_project.rb +20 -2
- data/lib/boards/repo.rb +3 -0
- data/lib/boards/version.rb +1 -1
- data/lib/boards.rb +2 -1
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ccfa6bc0e299db37e0a1b7a3f284ded998da16c2605c9349ae811759142fb3d9
|
4
|
+
data.tar.gz: f9fe563e2519f81b5935984cdcc4cee7c664f99632beb4ffd6b0ca902dcc7b8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c51633d9fdb418766d4922e88f11a99355a30e30a372d92d6ebb07ae49bd23bb708dbbf759cb5a60b5853e1e5f8050636055b00c42eff66f6074f41d91eae268
|
7
|
+
data.tar.gz: da24cc91b362c9d88887639040b41533f6a296e8abc46eb2098a3732607c4777be3865f637dc8e6a22d042d5c242e1139e6f968df9aaa255195113064d99f9e8
|
data/Gemfile.lock
CHANGED
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
|
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
|
20
|
-
spec.metadata["changelog_uri"] = "https://github.com
|
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.
|
data/lib/boards/new_project.rb
CHANGED
@@ -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")
|
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: '
|
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
|
data/lib/boards/repo.rb
ADDED
data/lib/boards/version.rb
CHANGED
data/lib/boards.rb
CHANGED
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
|
+
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-
|
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/
|
97
|
+
homepage: https://github.com/osullii/boards
|
97
98
|
licenses:
|
98
99
|
- MIT
|
99
100
|
metadata:
|
100
|
-
homepage_uri: https://github.com/osullii/
|
101
|
-
source_code_uri: https://github.com/osullii/
|
102
|
-
changelog_uri: https://github.com/osullii/
|
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:
|