Browse Source

Initial commit

master
Dylan Baker 4 years ago
commit
062c6e6ef0
15 changed files with 218 additions and 0 deletions
  1. 14
    0
      .gitignore
  2. 7
    0
      .rakeTasks
  3. 3
    0
      .rspec
  4. 1
    0
      .tool-versions
  5. 6
    0
      .travis.yml
  6. 15
    0
      Gemfile
  7. 54
    0
      Gemfile.lock
  8. 21
    0
      LICENSE.txt
  9. 40
    0
      README.md
  10. 6
    0
      Rakefile
  11. 2
    0
      bin/slack-mattermost-emoji
  12. 6
    0
      lib/slack_mattermost_emoji.rb
  13. 3
    0
      lib/slack_mattermost_emoji/version.rb
  14. 26
    0
      slack_mattermost_emoji.gemspec
  15. 14
    0
      spec/spec_helper.rb

+ 14
- 0
.gitignore View File

@@ -0,0 +1,14 @@
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
12
+
13
+.env
14
+/.idea/

+ 7
- 0
.rakeTasks View File

@@ -0,0 +1,7 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<Settings><!--This file was automatically generated by Ruby plugin.
3
+You are allowed to: 
4
+1. Remove rake task
5
+2. Add existing rake tasks
6
+To add existing rake tasks automatically delete this file and reload the project.
7
+--><RakeGroup description="" fullCmd="" taksId="rake" /></Settings>

+ 3
- 0
.rspec View File

@@ -0,0 +1,3 @@
1
+--format documentation
2
+--color
3
+--require spec_helper

+ 1
- 0
.tool-versions View File

@@ -0,0 +1 @@
1
+ruby 2.7.0

+ 6
- 0
.travis.yml View File

@@ -0,0 +1,6 @@
1
+---
2
+language: ruby
3
+cache: bundler
4
+rvm:
5
+  - 2.7.0
6
+before_install: gem install bundler -v 2.1.4

+ 15
- 0
Gemfile View File

@@ -0,0 +1,15 @@
1
+source "https://rubygems.org"
2
+
3
+# Specify your gem's dependencies in slack_mattermost_emoji.gemspec
4
+gemspec
5
+
6
+gem "rake", "~> 12.0"
7
+gem "rspec", "~> 3.0"
8
+
9
+gem "nokogiri", "~> 1.10"
10
+
11
+gem "dotenv", "~> 2.7"
12
+
13
+gem "httparty", "~> 0.18.0"
14
+
15
+gem "selenium-webdriver", "~> 3.142"

+ 54
- 0
Gemfile.lock View File

@@ -0,0 +1,54 @@
1
+PATH
2
+  remote: .
3
+  specs:
4
+    slack_mattermost_emoji (0.1.0)
5
+
6
+GEM
7
+  remote: https://rubygems.org/
8
+  specs:
9
+    childprocess (3.0.0)
10
+    diff-lcs (1.3)
11
+    dotenv (2.7.5)
12
+    httparty (0.18.0)
13
+      mime-types (~> 3.0)
14
+      multi_xml (>= 0.5.2)
15
+    mime-types (3.3.1)
16
+      mime-types-data (~> 3.2015)
17
+    mime-types-data (3.2019.1009)
18
+    mini_portile2 (2.4.0)
19
+    multi_xml (0.6.0)
20
+    nokogiri (1.10.9)
21
+      mini_portile2 (~> 2.4.0)
22
+    rake (12.3.3)
23
+    rspec (3.9.0)
24
+      rspec-core (~> 3.9.0)
25
+      rspec-expectations (~> 3.9.0)
26
+      rspec-mocks (~> 3.9.0)
27
+    rspec-core (3.9.1)
28
+      rspec-support (~> 3.9.1)
29
+    rspec-expectations (3.9.1)
30
+      diff-lcs (>= 1.2.0, < 2.0)
31
+      rspec-support (~> 3.9.0)
32
+    rspec-mocks (3.9.1)
33
+      diff-lcs (>= 1.2.0, < 2.0)
34
+      rspec-support (~> 3.9.0)
35
+    rspec-support (3.9.2)
36
+    rubyzip (2.3.0)
37
+    selenium-webdriver (3.142.7)
38
+      childprocess (>= 0.5, < 4.0)
39
+      rubyzip (>= 1.2.2)
40
+
41
+PLATFORMS
42
+  ruby
43
+
44
+DEPENDENCIES
45
+  dotenv (~> 2.7)
46
+  httparty (~> 0.18.0)
47
+  nokogiri (~> 1.10)
48
+  rake (~> 12.0)
49
+  rspec (~> 3.0)
50
+  selenium-webdriver (~> 3.142)
51
+  slack_mattermost_emoji!
52
+
53
+BUNDLED WITH
54
+   2.1.4

+ 21
- 0
LICENSE.txt View File

@@ -0,0 +1,21 @@
1
+The MIT License (MIT)
2
+
3
+Copyright (c) 2020 Dylan Baker
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.

+ 40
- 0
README.md View File

@@ -0,0 +1,40 @@
1
+# SlackMattermostEmoji
2
+
3
+Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/slack_mattermost_emoji`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+TODO: Delete this and the text above, and describe your gem
6
+
7
+## Installation
8
+
9
+Add this line to your application's Gemfile:
10
+
11
+```ruby
12
+gem 'slack_mattermost_emoji'
13
+```
14
+
15
+And then execute:
16
+
17
+    $ bundle install
18
+
19
+Or install it yourself as:
20
+
21
+    $ gem install slack_mattermost_emoji
22
+
23
+## Usage
24
+
25
+TODO: Write usage instructions here
26
+
27
+## Development
28
+
29
+After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
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).
32
+
33
+## Contributing
34
+
35
+Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/slack_mattermost_emoji.
36
+
37
+
38
+## License
39
+
40
+The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

+ 6
- 0
Rakefile View File

@@ -0,0 +1,6 @@
1
+require "bundler/gem_tasks"
2
+require "rspec/core/rake_task"
3
+
4
+RSpec::Core::RakeTask.new(:spec)
5
+
6
+task :default => :spec

+ 2
- 0
bin/slack-mattermost-emoji View File

@@ -0,0 +1,2 @@
1
+#!/usr/bin/env ruby
2
+

+ 6
- 0
lib/slack_mattermost_emoji.rb View File

@@ -0,0 +1,6 @@
1
+require "slack_mattermost_emoji/version"
2
+
3
+module SlackMattermostEmoji
4
+  class Error < StandardError; end
5
+  # Your code goes here...
6
+end

+ 3
- 0
lib/slack_mattermost_emoji/version.rb View File

@@ -0,0 +1,3 @@
1
+module SlackMattermostEmoji
2
+  VERSION = "0.1.0"
3
+end

+ 26
- 0
slack_mattermost_emoji.gemspec View File

@@ -0,0 +1,26 @@
1
+require_relative 'lib/slack_mattermost_emoji/version'
2
+
3
+Gem::Specification.new do |spec|
4
+  spec.name          = "slack_mattermost_emoji"
5
+  spec.version       = SlackMattermostEmoji::VERSION
6
+  spec.authors       = ["Dylan Baker"]
7
+  spec.email         = ["dylan@simulacrum.party"]
8
+
9
+  spec.summary       = %q{A tool for importing custom emojis from Slack into Mattermost}
10
+  spec.homepage      = "TODO: Put your gem's website or public repo URL here."
11
+  spec.homepage      = "https://git.simulacrum.party/simulacrumparty/slack_mattermost_emoji"
12
+  spec.license       = "MIT"
13
+  spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
14
+
15
+  spec.metadata["homepage_uri"] = spec.homepage
16
+  spec.metadata["source_code_uri"] = spec.homepage
17
+
18
+  # Specify which files should be added to the gem when it is released.
19
+  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
20
+  spec.files         = Dir.chdir(File.expand_path('..', __FILE__)) do
21
+    `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
22
+  end
23
+  spec.bindir        = "exe"
24
+  spec.executables   = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
25
+  spec.require_paths = ["lib"]
26
+end

+ 14
- 0
spec/spec_helper.rb View File

@@ -0,0 +1,14 @@
1
+require "bundler/setup"
2
+require "slack_mattermost_emoji"
3
+
4
+RSpec.configure do |config|
5
+  # Enable flags like --only-failures and --next-failure
6
+  config.example_status_persistence_file_path = ".rspec_status"
7
+
8
+  # Disable RSpec exposing methods globally on `Module` and `main`
9
+  config.disable_monkey_patching!
10
+
11
+  config.expect_with :rspec do |c|
12
+    c.syntax = :expect
13
+  end
14
+end

Loading…
Cancel
Save