atome 0.1.0 → 0.1.00002

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
- SHA1:
3
- metadata.gz: b4323a89b1113ebf4467ce6f403e84715601d803
4
- data.tar.gz: 77d9666e12dd42465372de9cbc3f04dd12e62004
2
+ SHA256:
3
+ metadata.gz: e90b009a458db201e147ed2ff47ba7225ab564c3eb469f52bb2523929b6145e1
4
+ data.tar.gz: 44ad8c62244a9fbf0a3dc20b83d91724d21f236839973f9ea2edc7661489ce1c
5
5
  SHA512:
6
- metadata.gz: 0c27da859df988fb0533541f25775eecdccf4fde358439ad885beae506980a9dca9f47516d83261d61651e891c62d2275596e1c7b624c1ce7a238d4cde58b28f
7
- data.tar.gz: 28122be82539c859fafe7c925ca2b5a8ce110e440936f5d8b171dbdef93ce6218c1bd39052be20147d4a4575ee5bb25ee7c13f5e216d1d1ebc2ac48af191fba0
6
+ metadata.gz: '09cb408f49d00b01d8aec377257015de3de6d3dd1e1bbcb69da106f10a70bf3d0939f403e10bcb4c4e4ae282e634482444c82736416c54ab06bacbdc9a27bd40'
7
+ data.tar.gz: a827a256e5277b8870608d4b9ea4d51fea952a4433d715b32ffe42751b73285384b0acdb85dcdab77daea44e827577b114802c37777b2b9ef55bc5a3987c44f1
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at jeezs@jeezs.net. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile CHANGED
@@ -1,4 +1,10 @@
1
- source 'https://rubygems.org'
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
2
4
 
3
5
  # Specify your gem's dependencies in atome.gemspec
4
6
  gemspec
7
+
8
+ gem "rake", "~> 13.0"
9
+
10
+ gem "minitest", "~> 5.0"
data/Gemfile.lock ADDED
@@ -0,0 +1,151 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ atome (0.1.00001)
5
+ artoo (~> 1.8)
6
+ faye-websocket (~> 0.1)
7
+ guard (~> 2.1)
8
+ guard-rake (~> 1.0)
9
+ image_size (~> 3.0)
10
+ mail (~> 2.1)
11
+ opal (~> 1.4)
12
+ opal-browser (~> 0.3)
13
+ opal-jquery (~> 0.4)
14
+ parser (~> 3.1)
15
+ puma (~> 5.6)
16
+ rack (~> 2.2)
17
+ rack-unreloader (~> 1.8)
18
+ rake (~> 13.0)
19
+ roda (~> 3.5)
20
+ rufus-scheduler (~> 3.8)
21
+ sequel (~> 5.5)
22
+ sqlite3 (~> 1.4)
23
+ uglifier (~> 0.1)
24
+
25
+ GEM
26
+ remote: https://rubygems.org/
27
+ specs:
28
+ artoo (1.8.2)
29
+ celluloid (~> 0.16.0)
30
+ celluloid-io (~> 0.16.0)
31
+ http (~> 0.6.1)
32
+ multi_json (~> 1.10.1)
33
+ pry (~> 0.9.0)
34
+ rake
35
+ reel (~> 0.5.0)
36
+ robeaux (= 0.4.1)
37
+ thor (~> 0.19.1)
38
+ ast (2.4.2)
39
+ celluloid (0.16.0)
40
+ timers (~> 4.0.0)
41
+ celluloid-io (0.16.2)
42
+ celluloid (>= 0.16.0)
43
+ nio4r (>= 1.1.0)
44
+ coderay (1.1.3)
45
+ concurrent-ruby (1.1.10)
46
+ et-orbi (1.2.7)
47
+ tzinfo
48
+ eventmachine (1.2.7)
49
+ execjs (2.8.1)
50
+ faye-websocket (0.11.1)
51
+ eventmachine (>= 0.12.0)
52
+ websocket-driver (>= 0.5.1)
53
+ ffi (1.15.5)
54
+ formatador (1.1.0)
55
+ fugit (1.5.3)
56
+ et-orbi (~> 1, >= 1.2.7)
57
+ raabro (~> 1.4)
58
+ guard (2.17.0)
59
+ formatador (>= 0.2.4)
60
+ listen (>= 2.7, < 4.0)
61
+ lumberjack (>= 1.0.12, < 2.0)
62
+ nenv (~> 0.1)
63
+ notiffany (~> 0.0)
64
+ pry (>= 0.9.12)
65
+ shellany (~> 0.0)
66
+ thor (>= 0.18.1)
67
+ guard-rake (1.0.0)
68
+ guard
69
+ rake
70
+ hitimes (2.0.0)
71
+ http (0.6.4)
72
+ http_parser.rb (~> 0.6.0)
73
+ http_parser.rb (0.6.0)
74
+ image_size (3.0.1)
75
+ listen (3.7.1)
76
+ rb-fsevent (~> 0.10, >= 0.10.3)
77
+ rb-inotify (~> 0.9, >= 0.9.10)
78
+ lumberjack (1.2.8)
79
+ mail (2.7.1)
80
+ mini_mime (>= 0.1.1)
81
+ method_source (0.9.2)
82
+ mini_mime (1.1.2)
83
+ minitest (5.15.0)
84
+ multi_json (1.10.1)
85
+ nenv (0.3.0)
86
+ nio4r (2.5.8)
87
+ notiffany (0.1.3)
88
+ nenv (~> 0.1)
89
+ shellany (~> 0.0)
90
+ opal (1.4.1)
91
+ ast (>= 2.3.0)
92
+ parser (~> 3.0, >= 3.0.3.2)
93
+ opal-browser (0.3.3)
94
+ opal (>= 1.0, < 2.0)
95
+ paggio (>= 0.3.0)
96
+ opal-jquery (0.4.6)
97
+ opal (>= 0.10.0, < 2.0)
98
+ paggio (0.3.0)
99
+ parser (3.1.1.0)
100
+ ast (~> 2.4.1)
101
+ pry (0.9.12.6)
102
+ coderay (~> 1.0)
103
+ method_source (~> 0.8)
104
+ slop (~> 3.4)
105
+ puma (5.6.4)
106
+ nio4r (~> 2.0)
107
+ raabro (1.4.0)
108
+ rack (2.2.3)
109
+ rack-unreloader (1.8.0)
110
+ rake (13.0.6)
111
+ rb-fsevent (0.11.1)
112
+ rb-inotify (0.10.1)
113
+ ffi (~> 1.0)
114
+ reel (0.5.0)
115
+ celluloid (>= 0.15.1)
116
+ celluloid-io (>= 0.15.0)
117
+ http (>= 0.6.0.pre)
118
+ http_parser.rb (>= 0.6.0)
119
+ websocket_parser (>= 0.1.6)
120
+ robeaux (0.4.1)
121
+ roda (3.54.0)
122
+ rack
123
+ rufus-scheduler (3.8.1)
124
+ fugit (~> 1.1, >= 1.1.6)
125
+ sequel (5.55.0)
126
+ shellany (0.0.1)
127
+ slop (3.6.0)
128
+ sqlite3 (1.4.2)
129
+ thor (0.19.4)
130
+ timers (4.0.4)
131
+ hitimes
132
+ tzinfo (2.0.4)
133
+ concurrent-ruby (~> 1.0)
134
+ uglifier (0.5.4)
135
+ execjs (>= 0.3.0)
136
+ multi_json (>= 1.0.2)
137
+ websocket-driver (0.7.5)
138
+ websocket-extensions (>= 0.1.0)
139
+ websocket-extensions (0.1.5)
140
+ websocket_parser (1.0.0)
141
+
142
+ PLATFORMS
143
+ arm64-darwin-21
144
+
145
+ DEPENDENCIES
146
+ atome!
147
+ minitest (~> 5.0)
148
+ rake (~> 13.0)
149
+
150
+ BUNDLED WITH
151
+ 2.3.10
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 Jean-Eric Godard
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md CHANGED
@@ -6,17 +6,11 @@ TODO: Delete this and the text above, and describe your gem
6
6
 
7
7
  ## Installation
8
8
 
9
- Add this line to your application's Gemfile:
9
+ Install the gem and add to the application's Gemfile by executing:
10
10
 
11
- ```ruby
12
- gem 'atome'
13
- ```
11
+ $ bundle add atome
14
12
 
15
- And then execute:
16
-
17
- $ bundle
18
-
19
- Or install it yourself as:
13
+ If bundler is not being used to manage dependencies, install the gem by executing:
20
14
 
21
15
  $ gem install atome
22
16
 
@@ -26,11 +20,18 @@ TODO: Write usage instructions here
26
20
 
27
21
  ## Development
28
22
 
29
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
23
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
24
 
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
25
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
26
 
33
27
  ## Contributing
34
28
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/atome.
29
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/atome. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/atome/blob/master/CODE_OF_CONDUCT.md).
30
+
31
+ ## License
32
+
33
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
34
+
35
+ ## Code of Conduct
36
36
 
37
+ Everyone interacting in the Atome project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/atome/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile CHANGED
@@ -1,2 +1,12 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "bundler/gem_tasks"
2
- task :default => :spec
4
+ require "rake/testtask"
5
+
6
+ Rake::TestTask.new(:test) do |t|
7
+ t.libs << "test"
8
+ t.libs << "lib"
9
+ t.test_files = FileList["test/**/test_*.rb"]
10
+ end
11
+
12
+ task default: :test
data/exe/atome ADDED
@@ -0,0 +1,44 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'atome'
5
+ require 'fileutils'
6
+
7
+ case ARGV[0]
8
+ when 'create'
9
+ project_name = ARGV[1]
10
+ Dir.mkdir project_name.to_s
11
+ current_path = `pwd`.chomp
12
+ gem_assets_location = File.join(File.dirname(__FILE__), '../vendor/assets/')
13
+ gem_run_helpers = File.join(File.dirname(__FILE__), '../run_helpers')
14
+ target_template_location = "#{current_path}/#{project_name}"
15
+ Dir.entries(gem_assets_location).select do |entry|
16
+ if File.join(entry) && !%w[. ..].include?(entry)
17
+ entry = "#{File.dirname(__FILE__)}/../vendor/assets/#{entry}"
18
+ FileUtils.cp_r entry, target_template_location
19
+ end
20
+ end
21
+ # now run the rake task to build the needed libraries (atome, renderers, etc...)
22
+ `cd #{gem_run_helpers};rake system_builder #{current_path}/#{project_name}`
23
+ # `cd #{project_name};bundle update`
24
+ # `cd #{project_name};bundle install`
25
+ # `cd #{project_name};bundle exec guard`
26
+ when 'run'
27
+ case ARGV[0]
28
+ when :android
29
+ when :browser
30
+ when :freebsd
31
+ when :ios
32
+ when :linux
33
+ when :osx
34
+ when :server
35
+ when :windows
36
+ else
37
+ # type code here
38
+ end
39
+
40
+ when 'build'
41
+ # puts "first parameter is : #{ARGV[1]}"
42
+ # puts "second parameter is : #{ARGV[2]}"
43
+ # puts 'run command'
44
+ end
@@ -0,0 +1,112 @@
1
+
2
+ module AtomeDummyMethods
3
+
4
+ # def dummy(value = nil, stack_property = nil)
5
+ # property = :dummy
6
+ # optional_processor = { pre_process: true, post_process: true, store_atome: false, render_atome: false }
7
+ # properties_common(property, value, stack_property, optional_processor)
8
+ # end
9
+ def universe(value = nil, stack_property = nil)
10
+ property = :universe
11
+ optional_processor = {}
12
+ properties_common(property, value, stack_property, optional_processor)
13
+ end
14
+
15
+ def parent(value = nil, stack_property = nil)
16
+ property = :parent
17
+ optional_processor = { pre_process: true, post_process: true }
18
+ properties_common(property, value, stack_property, optional_processor)
19
+ end
20
+
21
+ def left(value = nil, stack_property = nil)
22
+ property = :left
23
+ optional_processor = {}
24
+ properties_common(property, value, stack_property, optional_processor)
25
+ end
26
+
27
+ def top(value = nil, stack_property = nil)
28
+ property = :top
29
+ optional_processor = {}
30
+ properties_common(property, value, stack_property, optional_processor)
31
+ end
32
+ #
33
+ # def bottom(value = nil, stack_property = nil)
34
+ # property = :bottom
35
+ # optional_processor = {}
36
+ # properties_common(property, value, stack_property, optional_processor)
37
+ # end
38
+ #
39
+ def right(value = nil, stack_property = nil)
40
+ property = :right
41
+ optional_processor = {}
42
+ properties_common(property, value, stack_property, optional_processor)
43
+ end
44
+ #
45
+ # def child(value = nil, stack_property = nil)
46
+ # property = :child
47
+ # optional_processor = {}
48
+ # properties_common(property, value, stack_property, optional_processor)
49
+ # end
50
+ #
51
+ # def id(value = nil, stack_property = nil)
52
+ # property = :id
53
+ # optional_processor = {}
54
+ # properties_common(property, value, stack_property, optional_processor)
55
+ # end
56
+ #
57
+ # def name(value = nil, stack_property = nil)
58
+ # property = :name
59
+ # optional_processor = {}
60
+ # properties_common(property, value, stack_property, optional_processor)
61
+ # end
62
+ #
63
+ # def view(value = nil, stack_property = nil)
64
+ # property = :view
65
+ # optional_processor = {}
66
+ # properties_common(property, value, stack_property, optional_processor)
67
+ # end
68
+ #
69
+ # def type(value = nil, stack_property = nil)
70
+ # property = :type
71
+ # optional_processor = {}
72
+ # properties_common(property, value, stack_property, optional_processor)
73
+ # end
74
+ #
75
+ # def preset(value = nil, stack_property = nil)
76
+ # property = :preset
77
+ # optional_processor = {}
78
+ # properties_common(property, value, stack_property, optional_processor)
79
+ # end
80
+ #
81
+
82
+ #
83
+ # def red(value = nil, stack_property = nil)
84
+ # property = :red
85
+ # optional_processor = {}
86
+ # properties_common(property, value, stack_property, optional_processor)
87
+ # end
88
+ #
89
+ # def green(value = nil, stack_property = nil)
90
+ # property = :green
91
+ # optional_processor = {}
92
+ # properties_common(property, value, stack_property, optional_processor)
93
+ # end
94
+ #
95
+ # def blue(value = nil, stack_property = nil)
96
+ # property = :blue
97
+ # optional_processor = {}
98
+ # properties_common(property, value, stack_property, optional_processor)
99
+ # end
100
+ #
101
+ # def alpha(value = nil, stack_property = nil)
102
+ # property = :alpha
103
+ # optional_processor = {}
104
+ # properties_common(property, value, stack_property, optional_processor)
105
+ # end
106
+ #
107
+ # def radiation(value = nil, stack_property = nil)
108
+ # property = :radiation
109
+ # optional_processor = {}
110
+ # properties_common(property, value, stack_property, optional_processor)
111
+ # end
112
+ end
@@ -0,0 +1,42 @@
1
+ # frozen_string_literal: true
2
+
3
+ # this class hold all created atomes
4
+ class Universe
5
+ def self.initialize
6
+ Atome.new({ type: :user })
7
+ end
8
+
9
+ def self.atomes_add(new_atome)
10
+ @atomes << new_atome
11
+ end
12
+
13
+ class << self
14
+ attr_reader :atomes
15
+ end
16
+
17
+ def self.connected
18
+ true
19
+ end
20
+ end
21
+
22
+ # this class build atomes
23
+ class Atome
24
+ include AtomeDummyMethods
25
+
26
+ def initialize(params = {})
27
+ puts "the object id is : #{object_id} , #{params}"
28
+ end
29
+
30
+ def properties_common(value, current_property, stack_property, optional_processor)
31
+ puts "#{value}, #{current_property}, #{stack_property}, #{optional_processor}"
32
+ end
33
+ end
34
+ # Universe.initialize
35
+ Universe.connected
36
+
37
+ puts Universe.atomes
38
+
39
+ Atome.new({ top: 22 })
40
+ Atome.new({ top: 22 })
41
+ a = Atome.new({ top: 22 })
42
+ a.left(33)
@@ -0,0 +1,6 @@
1
+ module PropertyHtml
2
+ def say_html(params)
3
+ speech_dsp(params)
4
+ end
5
+
6
+ end
@@ -0,0 +1,4 @@
1
+ # render methods
2
+ module RenderHtml
3
+
4
+ end
@@ -0,0 +1,6 @@
1
+ module PropertyHtml
2
+ def say_html(params)
3
+ speech_dsp(params)
4
+ end
5
+
6
+ end
@@ -0,0 +1,4 @@
1
+ # render methods
2
+ module RenderHtml
3
+
4
+ end
data/lib/atome/version.rb CHANGED
@@ -1,3 +1,5 @@
1
- module Atome
2
- VERSION = "0.1.0"
1
+ # frozen_string_literal: true
2
+
3
+ class Atome
4
+ VERSION = '0.1.00002'
3
5
  end
data/lib/atome.rb CHANGED
@@ -1,5 +1,27 @@
1
- require "atome/version"
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'atome/version'
4
+ require "fileutils"
5
+
6
+ # current_path_location = `pwd`.chomp
7
+ # temp_location = '/tmp/com.atome.one'
8
+ # user_script_location=File.join(File.dirname(__FILE__), '../tmp/')
9
+ # Dir.exist?( user_script_location )
10
+ #
11
+ # FileUtils.mkdir_p temp_location
12
+ #
13
+ # guard_content = <<~STR
14
+ # guard 'rake', :task => 'build' do
15
+ # watch(%r{^#{current_path_location}})
16
+ # end
17
+ # STR
18
+ #
19
+ # rakefile_content = <<~STR
20
+ # task :build do
21
+ #
22
+ # end
23
+ # STR
24
+ # File.open("#{temp_location}/Guardfile", 'w') { |f| f.write(guard_content) }
25
+ # File.open("#{temp_location}/Rakefile", 'w') { |f| f.write(rakefile_content) }
26
+ # user_code = File.read("#{temp_location}/Guardfile")
2
27
 
3
- module Atome
4
- # Your code goes here...
5
- end