Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 73 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
## v0.1.2
- Bumping version to v0.1.2
- add fstab module and specs
- add service.restart, return 'self' in service methods
- use custom runtime error subclass for command failures

## v0.1.1
- Bumping version to 0.1.1
- add special distro types (generic/test)
- parse numeric partition sizes from parted output
- tidy up new features, round out specs testing them
- features to round out set
- add system representation
- add logical volume skeleton
- add disk/partition representations & specs
- start adding specs for services
- add service representation
- add distro representation
- Improved test coverage of common
- Add proxy support to subscribe, refactor proxy details into a method.
- Add register command with proxy and satellite options and tests.
- Create an array from the options instead of a hash.
- Requiring all of active_support core_extensions
- ActiveSupport v4 drops support for ruby 1.9.2

## v0.1.0
- Building v0.1.0
- Made sanitize a private method
- Fixed default options to expect positive case.
- Cleanup of commands
- Refactored sanitizing
- Added active_support for blank? method
- Allow common methods to be called without namespacing.
- Extending Yum to get the latest available version for package(s)
- Add more options to Subscription Manager registration
- Add a common method to sanitize user input for the command line.
- Add common write command for use in writing config files.
- Add parsing of Yum repo files with tests and sample data.
- Add gem to parse files with ini type contents
- Adding Hash store_path
- Extend Yum.update to allow an optional list of packages as arguments.
- Add test and support for using yum's repotrack tool.
- Add test and support for using yum's createrepo tool.
- Added tests and support for RPM.
- Adding dependency for other core extensions.
- Fix issue related to command output filling up the IO pipe.
- Removing JRuby, Rubinius and MRI 1.8 because of Kernel.spawn support.
- Fix misnamed .travis.yml file
- Adding Version Badge

## v0.0.1
- Adding Gemnasium support
- Adding Coveralls support
- Adding CodeClimate support
- Adding travis-ci support
- Adding example for Red Hat Subscription Manager hosted
- '.registered?' should return false rather than raise if not available.
- Adding support and tests for SubscriptionManager
- Extending Common.run with option ':return_output'
- Added support to mock command output sourced from a data file for tests
- Adding tests for Yum commands
- Adding tests for linux_admin
- Updating Yum methods to leverage changes in Common module
- Extending common and adding tests
- Cleaner way to get the exitstatus of the shell process.
- Yum commands should return true-false or raise an exception
- Adding high level method to check system registration status
- Adding tests for RHN functionality.
- Adding support for RHN and method to check registeration status
- Adding support for Yum (check and apply updates)
- Adding a module for shared methods.
- Adding rspec for testing.
- Gem Framework added.
33 changes: 32 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,35 @@ require "bundler/gem_tasks"
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new('spec')
task :test => :spec
task :default => :spec
task :default => :spec

Rake::Task[:release].enhance [:update_changelog]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does enhance do? I've never seen this before.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adds a prequisite task to an existing rake task.
http://rake.rubyforge.org/classes/Rake/Task.html#M000112

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here's the link I found that shows how to use enhance:
http://edgar.tumblr.com/post/52300664342/how-to-extend-an-existing-rake-task


task :update_changelog do
change = "CHANGELOG.md"
`git diff --quiet #{change}`
if $?.exitstatus == 1
warn "There are already changes to #{change}."
exit 1
end
existing = File.read(change)

require 'linux_admin/version'
version = LinuxAdmin::VERSION

new_text = `git log --no-merges --format=" - %s" v#{version}...HEAD`
File.write(change, new_text + "\n" + existing)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoa, when did they add File.write? This changes everything.

Also, you should probably use interpolation here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, File.read and File.write are nice shortcuts.

Yeah, if this proof of concept is something we want to do, I'll clean it up.


msg = <<-MSG
Updated #{change} with commits since v#{version}.
Now:
1) Update LinuxAdmin::VERSION.
2) Verify the commits added to #{change} since the last tag.
3) Update #{change} with the version for these commits.
4) Commit these changes.
5) Hit enter to continue.
MSG
puts msg

STDIN.gets
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One note, if you screw up, rake release will complain if you forgot to commit your changes locally.

end