diamond-lang 1.1.0 → 1.1.1
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/VERSION +1 -1
- data/diamond-lang.gemspec +2 -2
- data/examples/conveyor.rb +3 -2
- data/lib/diamond-lang/one_command.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 146ad378461d50b88c212bf338df996e7eeea8e5
|
4
|
+
data.tar.gz: 2f1ae43f3e504de2db3d3106cd41f2b293fe7025
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2e772bf13e68a58a50c8f51f2caf5baa09204da999e1bd8c114c01f714d394b7a379de160708242634258d56e1d30a07585447b1681ac5396fbdc78b782fb3d
|
7
|
+
data.tar.gz: 2b12b8f1c1c7b581b3054bce42a63a8f1d6f0acce21da0adcefc9c4879b598b96db3ebce94baee8ad0e967bd43ecc1723a330bb3c44f128ca18084830ad359c5
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.1
|
data/diamond-lang.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: diamond-lang 1.1.
|
5
|
+
# stub: diamond-lang 1.1.1 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "diamond-lang"
|
9
|
-
s.version = "1.1.
|
9
|
+
s.version = "1.1.1"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
data/examples/conveyor.rb
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
require 'diamond-lang'
|
2
|
+
require 'json'
|
2
3
|
|
3
4
|
class Conveyor < DiamondLang::OneCommand
|
4
5
|
def setup(c)
|
5
|
-
c.title s(:a), :subtitle, {"
|
6
|
-
c.title s(:a), :title, {"
|
6
|
+
c.title s(:a), :subtitle, {"text " => "command by Ben from bensites.com"}.to_json
|
7
|
+
c.title s(:a), :title, {"text " => "Conveyor Belts"}.to_json
|
7
8
|
end
|
8
9
|
def tick(c)
|
9
10
|
black_carpet = b 'carpet', colors(:black)
|
@@ -5,7 +5,7 @@ module DiamondLang
|
|
5
5
|
end
|
6
6
|
def self.create(*args)
|
7
7
|
@@instance = self.new(*args)
|
8
|
-
puts @@instance.to_command.to_s.gsub(/\\?"(\w+?)\\?":/, '\1:')
|
8
|
+
puts @@instance.to_command.to_s.gsub(/\\?"(\w+?)\\?":/, '\1:').gsub(/(\\?"\w+?)\s(\\?":)/, '\1\2')
|
9
9
|
end
|
10
10
|
def initialize(height=5, length=6, width=5, offset=coords(2, 2, 0), surrond=Helpers::Block.new('stained_hardened_clay', 13), output=false)
|
11
11
|
@output = output
|