pickaxegem 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 002adbec5b08d73a5a47f0d6bd75d26b0ffc773397645140c1a1c43a7baf7d67
4
+ data.tar.gz: 2a73012d0a7238499acf8b57452961507caf57882665e0e2f4edc89dc8a35cb0
5
+ SHA512:
6
+ metadata.gz: 06b1ba240d3e31a4adc09ade062c6170fd36285ae556e7543d80966f0908d7913aacd1edbb2fd4f730854875a5a4dc436390d653ed168a9551d77d4870f394f5
7
+ data.tar.gz: b1005e3a27d3dec30278968a61771d4c351319b92ac7c1e7348e34c83f4f6d3d4d5cae075b1fceac162a1f7c90fa1ee678e7e6283ac082a733676e7488e4e848
@@ -0,0 +1,20 @@
1
+ plugins:
2
+ bundler-audit:
3
+ enabled: true
4
+ editorconfig:
5
+ enabled: true
6
+ fixme:
7
+ enabled: true
8
+ flog:
9
+ enabled: true
10
+ git-legal:
11
+ enabled: true
12
+ markdownlint:
13
+ enabled: true
14
+ reek:
15
+ enabled: true
16
+ rubocop:
17
+ enabled: true
18
+ channel: rubocop-0-92
19
+ shellcheck:
20
+ enabled: true
@@ -0,0 +1,9 @@
1
+ root = true
2
+
3
+ [*]
4
+ indent_style = space
5
+ indent_size = 2
6
+ end_of_line = lf
7
+ charset = utf-8
8
+ trim_trailing_whitespace = true
9
+ insert_final_newline = true
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,11 @@
1
+ require:
2
+ - rubocop-performance
3
+ - rubocop-rake
4
+ - rubocop-rspec
5
+ - rubocop-rubycw
6
+
7
+ AllCops:
8
+ NewCops: enable
9
+
10
+ Layout/EndOfLine:
11
+ EnforcedStyle: lf
@@ -0,0 +1,6 @@
1
+ ---
2
+ language: ruby
3
+ cache: bundler
4
+ rvm:
5
+ - 2.7.2
6
+ before_install: gem install bundler -v 2.1.4
@@ -0,0 +1,8 @@
1
+ {
2
+ "recommendations": [
3
+ "castwide.solargraph",
4
+ "DavidAnson.vscode-markdownlint",
5
+ "EditorConfig.EditorConfig",
6
+ "kaiwood.endwise"
7
+ ]
8
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "editor.rulers": [
3
+ 120
4
+ ],
5
+ "solargraph.diagnostics": true,
6
+ "solargraph.useBundler": true
7
+ }
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at TODO: Write your email address. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [https://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: https://contributor-covenant.org
74
+ [version]: https://contributor-covenant.org/version/1/4/
@@ -0,0 +1 @@
1
+ Please look at the [README file](https://github.com/ismailarilik/pickaxe/blob/master/README.md).
data/Gemfile ADDED
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ # Specify your gem's dependencies in pickaxe.gemspec
6
+ gemspec
7
+
8
+ gem 'rake', '~> 13.0'
9
+ gem 'rspec', '~> 3.9'
10
+ gem 'rubocop', '~> 0.93.1'
11
+ gem 'rubocop-performance', '~> 1.8'
12
+ gem 'rubocop-rake', '~> 0.5.1'
13
+ gem 'rubocop-rspec', '~> 1.44'
14
+ gem 'rubocop-rubycw', '~> 0.1.4'
15
+ gem 'solargraph', '~> 0.39.17'
@@ -0,0 +1,133 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ pickaxegem (0.1.0)
5
+ gtk3 (~> 3.4)
6
+ gtksourceview4 (~> 3.4)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ ast (2.4.1)
12
+ atk (3.4.3)
13
+ glib2 (= 3.4.3)
14
+ backport (1.1.2)
15
+ benchmark (0.1.0)
16
+ cairo (1.16.6)
17
+ native-package-installer (>= 1.0.3)
18
+ pkg-config (>= 1.2.2)
19
+ cairo-gobject (3.4.3)
20
+ cairo (>= 1.16.2)
21
+ glib2 (= 3.4.3)
22
+ diff-lcs (1.4.4)
23
+ e2mmap (0.1.0)
24
+ gdk3 (3.4.3)
25
+ cairo-gobject (= 3.4.3)
26
+ gdk_pixbuf2 (= 3.4.3)
27
+ pango (= 3.4.3)
28
+ gdk_pixbuf2 (3.4.3)
29
+ gio2 (= 3.4.3)
30
+ gio2 (3.4.3)
31
+ gobject-introspection (= 3.4.3)
32
+ glib2 (3.4.3)
33
+ native-package-installer (>= 1.0.3)
34
+ pkg-config (>= 1.3.5)
35
+ gobject-introspection (3.4.3)
36
+ glib2 (= 3.4.3)
37
+ gtk3 (3.4.3)
38
+ atk (= 3.4.3)
39
+ gdk3 (= 3.4.3)
40
+ gdk_pixbuf2 (= 3.4.3)
41
+ gio2 (= 3.4.3)
42
+ pango (= 3.4.3)
43
+ gtksourceview4 (3.4.3)
44
+ gtk3 (= 3.4.3)
45
+ jaro_winkler (1.5.4)
46
+ maruku (0.7.3)
47
+ mini_portile2 (2.4.0)
48
+ native-package-installer (1.0.9)
49
+ nokogiri (1.10.10)
50
+ mini_portile2 (~> 2.4.0)
51
+ pango (3.4.3)
52
+ cairo-gobject (= 3.4.3)
53
+ gobject-introspection (= 3.4.3)
54
+ parallel (1.19.2)
55
+ parser (2.7.2.0)
56
+ ast (~> 2.4.1)
57
+ pkg-config (1.4.4)
58
+ rainbow (3.0.0)
59
+ rake (13.0.1)
60
+ regexp_parser (1.8.2)
61
+ reverse_markdown (2.0.0)
62
+ nokogiri
63
+ rexml (3.2.4)
64
+ rspec (3.9.0)
65
+ rspec-core (~> 3.9.0)
66
+ rspec-expectations (~> 3.9.0)
67
+ rspec-mocks (~> 3.9.0)
68
+ rspec-core (3.9.3)
69
+ rspec-support (~> 3.9.3)
70
+ rspec-expectations (3.9.3)
71
+ diff-lcs (>= 1.2.0, < 2.0)
72
+ rspec-support (~> 3.9.0)
73
+ rspec-mocks (3.9.1)
74
+ diff-lcs (>= 1.2.0, < 2.0)
75
+ rspec-support (~> 3.9.0)
76
+ rspec-support (3.9.4)
77
+ rubocop (0.93.1)
78
+ parallel (~> 1.10)
79
+ parser (>= 2.7.1.5)
80
+ rainbow (>= 2.2.2, < 4.0)
81
+ regexp_parser (>= 1.8)
82
+ rexml
83
+ rubocop-ast (>= 0.6.0)
84
+ ruby-progressbar (~> 1.7)
85
+ unicode-display_width (>= 1.4.0, < 2.0)
86
+ rubocop-ast (1.0.1)
87
+ parser (>= 2.7.1.5)
88
+ rubocop-performance (1.8.1)
89
+ rubocop (>= 0.87.0)
90
+ rubocop-ast (>= 0.4.0)
91
+ rubocop-rake (0.5.1)
92
+ rubocop
93
+ rubocop-rspec (1.44.1)
94
+ rubocop (~> 0.87)
95
+ rubocop-ast (>= 0.7.1)
96
+ rubocop-rubycw (0.1.4)
97
+ rubocop
98
+ ruby-progressbar (1.10.1)
99
+ solargraph (0.39.17)
100
+ backport (~> 1.1)
101
+ benchmark
102
+ bundler (>= 1.17.2)
103
+ e2mmap
104
+ jaro_winkler (~> 1.5)
105
+ maruku (~> 0.7, >= 0.7.3)
106
+ nokogiri (~> 1.9, >= 1.9.1)
107
+ parser (~> 2.3)
108
+ reverse_markdown (>= 1.0.5, < 3)
109
+ rubocop (~> 0.52)
110
+ thor (~> 1.0)
111
+ tilt (~> 2.0)
112
+ yard (~> 0.9, >= 0.9.24)
113
+ thor (1.0.1)
114
+ tilt (2.0.10)
115
+ unicode-display_width (1.7.0)
116
+ yard (0.9.25)
117
+
118
+ PLATFORMS
119
+ ruby
120
+
121
+ DEPENDENCIES
122
+ pickaxegem!
123
+ rake (~> 13.0)
124
+ rspec (~> 3.9)
125
+ rubocop (~> 0.93.1)
126
+ rubocop-performance (~> 1.8)
127
+ rubocop-rake (~> 0.5.1)
128
+ rubocop-rspec (~> 1.44)
129
+ rubocop-rubycw (~> 0.1.4)
130
+ solargraph (~> 0.39.17)
131
+
132
+ BUNDLED WITH
133
+ 2.1.4
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 İsmail Arılık
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.
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 İsmail Arılık
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.
@@ -0,0 +1,59 @@
1
+ # Pickaxe [![Maintainability](https://api.codeclimate.com/v1/badges/519170b38eac007088e1/maintainability)](https://codeclimate.com/github/ismailarilik/pickaxe/maintainability)
2
+
3
+ An editor written with Ruby/GTK
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'pickaxe'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ ```sh
16
+ bundle install
17
+ ```
18
+
19
+ Or install it yourself as:
20
+
21
+ ```sh
22
+ gem install pickaxe
23
+ ```
24
+
25
+ ## Usage
26
+
27
+ Execute:
28
+
29
+ ```sh
30
+ pickaxe
31
+ ```
32
+
33
+ ## Development
34
+
35
+ After checking out the repo, run `bin/setup` to install dependencies.
36
+ Then, run `bundle exec rake lint` to run the static code analysis.
37
+ After then, run `bundle exec rake spec` to run the tests.
38
+ You can also run `bundle exec rake` to run both.
39
+
40
+ Put your Ruby code in the file `lib/pickaxe`.
41
+ To experiment with that code, run `bin/console` for an interactive prompt.
42
+
43
+ To install this gem onto your local machine, run `bundle exec rake install`.
44
+ 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).
45
+
46
+ ## Contributing
47
+
48
+ Bug reports and pull requests are welcome on GitHub at [https://github.com/ismailarilik/pickaxe](https://github.com/ismailarilik/pickaxe).
49
+ 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/ismailarilik/pickaxe/blob/master/CODE_OF_CONDUCT.md).
50
+
51
+ ## License
52
+
53
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
54
+
55
+ The pickaxe icon made by [Smashicons](https://www.flaticon.com/authors/smashicons) from [www.flaticon.com](https://www.flaticon.com/).
56
+
57
+ ## Code of Conduct
58
+
59
+ Everyone interacting in the Pickaxe project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/ismailarilik/pickaxe/blob/master/CODE_OF_CONDUCT.md).
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
5
+ require 'rubocop/rake_task'
6
+
7
+ RSpec::Core::RakeTask.new(:spec)
8
+
9
+ RuboCop::RakeTask.new(:lint)
10
+
11
+ task default: %i[lint spec]
@@ -0,0 +1 @@
1
+ theme: jekyll-theme-cayman
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # frozen_string_literal: true
4
+
5
+ require 'bundler/setup'
6
+ require 'pickaxe'
7
+
8
+ # You can add fixtures and/or initialization code here to make experimenting
9
+ # with your gem easier. You can also use a different console, if you like.
10
+
11
+ # (If you use this, don't forget to add pry to your Gemfile!)
12
+ # require "pry"
13
+ # Pry.start
14
+
15
+ require 'irb'
16
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # frozen_string_literal: true
4
+
5
+ require 'pickaxe'
6
+
7
+ application = Pickaxe::Application.new
8
+ application.run
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'pickaxe/application'
4
+ require 'pickaxe/version'
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'gtk3'
4
+ require_relative 'application_window'
5
+
6
+ # Main module
7
+ module Pickaxe
8
+ # Pickaxe::Application < Gtk::Application
9
+ class Application < Gtk::Application
10
+ def initialize
11
+ super 'com.ismailarilik.pickaxe'
12
+
13
+ signal_connect 'activate' do |application|
14
+ @application_window = ApplicationWindow.new application
15
+ @application_window.present
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'gtk3'
4
+ require 'gtksourceview4'
5
+
6
+ # Main module
7
+ module Pickaxe
8
+ # Pickaxe::ApplicationWindow < Gtk::ApplicationWindow
9
+ class ApplicationWindow < Gtk::ApplicationWindow
10
+ type_register
11
+
12
+ class << self
13
+ def init
14
+ GtkSource::View.init
15
+
16
+ # Set template from a Glade UI file
17
+ ui_file_path = File.expand_path('ui/application_window.ui', __dir__)
18
+ ui_data = File.read ui_file_path
19
+ set_template data: ui_data
20
+ end
21
+ end
22
+
23
+ def initialize(application)
24
+ super application: application
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,121 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- Generated with glade 3.36.0
3
+
4
+ The MIT License (MIT)
5
+
6
+ Copyright (c) 2020 ismailarilik
7
+
8
+ Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ of this software and associated documentation files (the "Software"), to deal
10
+ in the Software without restriction, including without limitation the rights
11
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ copies of the Software, and to permit persons to whom the Software is
13
+ furnished to do so, subject to the following conditions:
14
+
15
+ The above copyright notice and this permission notice shall be included in
16
+ all copies or substantial portions of the Software.
17
+
18
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
+ THE SOFTWARE.
25
+
26
+ Author: ismailarilik
27
+
28
+ -->
29
+ <interface>
30
+ <requires lib="gtk+" version="3.22"/>
31
+ <requires lib="gtksourceview" version="4.0"/>
32
+ <!-- interface-license-type mit -->
33
+ <!-- interface-name Pickaxe -->
34
+ <!-- interface-description An editor written with Ruby/GTK -->
35
+ <!-- interface-copyright 2020 ismailarilik -->
36
+ <!-- interface-authors ismailarilik -->
37
+ <template class="PickaxeApplicationWindow" parent="GtkApplicationWindow">
38
+ <property name="can_focus">False</property>
39
+ <property name="window_position">center</property>
40
+ <property name="icon">lib/pickaxe/images/pickaxe256.png</property>
41
+ <child>
42
+ <object class="GtkPaned">
43
+ <property name="visible">True</property>
44
+ <property name="can_focus">True</property>
45
+ <child>
46
+ <placeholder/>
47
+ </child>
48
+ <child>
49
+ <object class="GtkPaned">
50
+ <property name="visible">True</property>
51
+ <property name="can_focus">True</property>
52
+ <property name="orientation">vertical</property>
53
+ <child>
54
+ <object class="GtkPaned">
55
+ <property name="visible">True</property>
56
+ <property name="can_focus">True</property>
57
+ <child>
58
+ <object class="GtkScrolledWindow">
59
+ <property name="visible">True</property>
60
+ <property name="can_focus">True</property>
61
+ <property name="shadow_type">in</property>
62
+ <property name="propagate_natural_width">True</property>
63
+ <property name="propagate_natural_height">True</property>
64
+ <child>
65
+ <object class="GtkSourceView">
66
+ <property name="visible">True</property>
67
+ <property name="can_focus">True</property>
68
+ <property name="left_margin">2</property>
69
+ <property name="right_margin">2</property>
70
+ <property name="input_hints">GTK_INPUT_HINT_SPELLCHECK | GTK_INPUT_HINT_WORD_COMPLETION | GTK_INPUT_HINT_EMOJI | GTK_INPUT_HINT_NONE</property>
71
+ <property name="populate_all">True</property>
72
+ <property name="monospace">True</property>
73
+ <property name="show_line_numbers">True</property>
74
+ <property name="tab_width">2</property>
75
+ <property name="indent_width">2</property>
76
+ <property name="auto_indent">True</property>
77
+ <property name="insert_spaces_instead_of_tabs">True</property>
78
+ <property name="show_right_margin">True</property>
79
+ <property name="right_margin_position">120</property>
80
+ <property name="highlight_current_line">True</property>
81
+ <property name="smart_backspace">True</property>
82
+ </object>
83
+ </child>
84
+ </object>
85
+ <packing>
86
+ <property name="resize">False</property>
87
+ <property name="shrink">True</property>
88
+ </packing>
89
+ </child>
90
+ <child>
91
+ <placeholder/>
92
+ </child>
93
+ </object>
94
+ <packing>
95
+ <property name="resize">False</property>
96
+ <property name="shrink">True</property>
97
+ </packing>
98
+ </child>
99
+ <child>
100
+ <placeholder/>
101
+ </child>
102
+ </object>
103
+ <packing>
104
+ <property name="resize">True</property>
105
+ <property name="shrink">True</property>
106
+ </packing>
107
+ </child>
108
+ </object>
109
+ </child>
110
+ <child type="titlebar">
111
+ <object class="GtkHeaderBar">
112
+ <property name="visible">True</property>
113
+ <property name="can_focus">False</property>
114
+ <property name="show_close_button">True</property>
115
+ <child>
116
+ <placeholder/>
117
+ </child>
118
+ </object>
119
+ </child>
120
+ </template>
121
+ </interface>
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Pickaxe
4
+ VERSION = '0.1.0'
5
+ end
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'lib/pickaxe/version'
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'pickaxegem'
7
+ spec.version = Pickaxe::VERSION
8
+ spec.authors = ['İsmail Arılık']
9
+ spec.email = ['arilik.ismail@gmail.com']
10
+
11
+ spec.summary = 'An editor written with Ruby/GTK'
12
+ spec.homepage = 'https://github.com/ismailarilik/pickaxe'
13
+ spec.license = 'MIT'
14
+ spec.required_ruby_version = Gem::Requirement.new('>= 2.4.0')
15
+
16
+ spec.metadata['homepage_uri'] = spec.homepage
17
+ spec.metadata['source_code_uri'] = spec.homepage
18
+
19
+ # Specify which files should be added to the gem when it is released.
20
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
21
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
22
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
23
+ end
24
+ spec.bindir = 'exe'
25
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
26
+ spec.require_paths = ['lib']
27
+
28
+ spec.add_runtime_dependency 'gtk3', '~> 3.4'
29
+ spec.add_runtime_dependency 'gtksourceview4', '~> 3.4'
30
+ end
metadata ADDED
@@ -0,0 +1,101 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pickaxegem
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - İsmail Arılık
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2020-10-28 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: gtk3
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.4'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.4'
27
+ - !ruby/object:Gem::Dependency
28
+ name: gtksourceview4
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '3.4'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '3.4'
41
+ description:
42
+ email:
43
+ - arilik.ismail@gmail.com
44
+ executables:
45
+ - pickaxe
46
+ extensions: []
47
+ extra_rdoc_files: []
48
+ files:
49
+ - ".codeclimate.yml"
50
+ - ".editorconfig"
51
+ - ".gitignore"
52
+ - ".rspec"
53
+ - ".rubocop.yml"
54
+ - ".travis.yml"
55
+ - ".vscode/extensions.json"
56
+ - ".vscode/settings.json"
57
+ - CODE_OF_CONDUCT.md
58
+ - CONTRIBUTING.md
59
+ - Gemfile
60
+ - Gemfile.lock
61
+ - LICENSE
62
+ - LICENSE.txt
63
+ - README.md
64
+ - Rakefile
65
+ - _config.yml
66
+ - bin/console
67
+ - bin/setup
68
+ - exe/pickaxe
69
+ - lib/pickaxe.rb
70
+ - lib/pickaxe/application.rb
71
+ - lib/pickaxe/application_window.rb
72
+ - lib/pickaxe/images/pickaxe256.png
73
+ - lib/pickaxe/ui/application_window.ui
74
+ - lib/pickaxe/version.rb
75
+ - pickaxe.gemspec
76
+ homepage: https://github.com/ismailarilik/pickaxe
77
+ licenses:
78
+ - MIT
79
+ metadata:
80
+ homepage_uri: https://github.com/ismailarilik/pickaxe
81
+ source_code_uri: https://github.com/ismailarilik/pickaxe
82
+ post_install_message:
83
+ rdoc_options: []
84
+ require_paths:
85
+ - lib
86
+ required_ruby_version: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: 2.4.0
91
+ required_rubygems_version: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ requirements: []
97
+ rubygems_version: 3.1.4
98
+ signing_key:
99
+ specification_version: 4
100
+ summary: An editor written with Ruby/GTK
101
+ test_files: []